mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.1.1098: leaking memory with completing multi lines
Problem: leaking memory with completing multi lines
(after v9.1.1086)
Solution: free allocated memory (glepnir)
closes: vim/vim#16605
e3647c8bf5
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -3788,6 +3788,9 @@ void ins_compl_delete(bool new_leader)
|
|||||||
|
|
||||||
if ((int)curwin->w_cursor.col > col) {
|
if ((int)curwin->w_cursor.col > col) {
|
||||||
if (stop_arrow() == FAIL) {
|
if (stop_arrow() == FAIL) {
|
||||||
|
if (remaining) {
|
||||||
|
XFREE_CLEAR(remaining);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
backspace_until_column(col);
|
backspace_until_column(col);
|
||||||
|
Reference in New Issue
Block a user