commit | d699544205de1ba8d36d98e4842e9a067e4c32ab | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Fri Jun 27 04:06:13 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Fri Jun 27 04:06:13 2008 +0000 |
tree | 3e8c4cc26bf4325e07e5a175da49d74782271b15 | |
parent | 42b8daf88a600289d6b72c52777183ef64b05bb0 [diff] [blame] |
vi: fix vda's thinko
diff --git a/editors/vi.c b/editors/vi.c index 1b335d9..81baa89 100644 --- a/editors/vi.c +++ b/editors/vi.c
@@ -1894,7 +1894,7 @@ p = new_text + (p - text); text = new_text; } - memmove(p + size, p, end - p); + memmove(p + size, p, end - size - p); memset(p, ' ', size); // clear new hole file_modified++; return p;