vim-patch:9.1.0195: memleak with ex_drop, NULL dereference

Problem:  memleak with ex_drop(), NULL dereference
          (zeertzjq)
Solution: revert back to ex_rewind(), use curbuf instead of buf

fixes: vim/vim#14246
closes: vim/vim#14251

85a769d466

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-03-22 05:54:12 +08:00
parent 271879dd49
commit dabc44d15c
2 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ describe(':drop', function()
lazy dogs |
{0:~ }|*6
{1:Xdrop_modified.txt [+] }|
"Xdrop_modified.txt" [New] |
:drop Xdrop_modified.txt |
]])
end)
end)