From 70685bd022855c858682c51da95a07336505536d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 24 Jun 2008 14:10:41 +0000 Subject: [PATCH] vi: fix yet another vda's thinko --- editors/vi.c | 1 + 1 file changed, 1 insertion(+) 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 p = new_text + (p - text); text = new_text; } + memmove(p + size, p, end - p); memset(p, ' ', size); // clear new hole file_modified++; return p; -- 2.25.1