diff options
-rw-r--r-- | editors/vi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c index f2f1fecde..1b335d9a1 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 | |||
1894 | p = new_text + (p - text); | 1894 | p = new_text + (p - text); |
1895 | text = new_text; | 1895 | text = new_text; |
1896 | } | 1896 | } |
1897 | memmove(p + size, p, end - p); | ||
1897 | memset(p, ' ', size); // clear new hole | 1898 | memset(p, ' ', size); // clear new hole |
1898 | file_modified++; | 1899 | file_modified++; |
1899 | return p; | 1900 | return p; |