aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-24 14:10:41 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-24 14:10:41 +0000
commit70685bd022855c858682c51da95a07336505536d (patch)
treeb6f82e795ebd2e6941739109b59b7fe1afb75a82 /editors/vi.c
parent5ec6132c9884f1f6ccbcc8277cb73220462a2133 (diff)
downloadbusybox-70685bd022855c858682c51da95a07336505536d.tar.gz
vi: fix yet another vda's thinko
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 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;