mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
vi: fix yet another vda's thinko
This commit is contained in:
parent
5ec6132c98
commit
70685bd022
@ -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);
|
p = new_text + (p - text);
|
||||||
text = new_text;
|
text = new_text;
|
||||||
}
|
}
|
||||||
|
memmove(p + size, p, end - p);
|
||||||
memset(p, ' ', size); // clear new hole
|
memset(p, ' ', size); // clear new hole
|
||||||
file_modified++;
|
file_modified++;
|
||||||
return p;
|
return p;
|
||||||
|
Loading…
Reference in New Issue
Block a user