diff options
author | Denis Vlasenko | 2008-06-24 14:10:41 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-24 14:10:41 +0000 |
commit | 70685bd022855c858682c51da95a07336505536d (patch) | |
tree | b6f82e795ebd2e6941739109b59b7fe1afb75a82 | |
parent | 5ec6132c9884f1f6ccbcc8277cb73220462a2133 (diff) | |
download | busybox-70685bd022855c858682c51da95a07336505536d.zip busybox-70685bd022855c858682c51da95a07336505536d.tar.gz |
vi: fix yet another vda's thinko
-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 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; |