vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 0de1e961c85726970a4d367243c4d67ae9d703a4
parent b8939e30c513322fc5a316cc52460a7a178a34ac
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 30 May 2018 16:19:32 +0200

text: only default to mmap for files larger than 64 MiB

Diffstat:
Mtext.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/text.c b/text.c @@ -34,7 +34,7 @@ /* Files smaller than this value are copied on load, larger ones are mmap(2)-ed * directely. Hence the former can be truncated, while doing so on the latter * results in havoc. */ -#define BLOCK_MMAP_SIZE (1 << 23) +#define BLOCK_MMAP_SIZE (1 << 26) /* Block holding the file content, either readonly mmap(2)-ed from the original * file or heap allocated to store the modifications.