summaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c
index f2f1fec..1b335d9 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -1894,6 +1894,7 @@ static char *text_hole_make(char *p, int size) // at "p", make a 'size' byte hol
p = new_text + (p - text);
text = new_text;
}
+ memmove(p + size, p, end - p);
memset(p, ' ', size); // clear new hole
file_modified++;
return p;