vi: fix vda's thinko

This commit is contained in:
Denis Vlasenko 2008-06-27 04:06:13 +00:00
parent 42b8daf88a
commit d699544205

View File

@ -1894,7 +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);
memmove(p + size, p, end - size - p);
memset(p, ' ', size); // clear new hole
file_modified++;
return p;