mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0653: Patch v9.1.0648 not completely right
Problem: Patch v9.1.0648 not completely right
(zeertzjq)
Solution: Remove always true condition
closes: vim/vim#15415
a0b5bc1285
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
6967c08840
commit
4c886d0e73
@ -227,12 +227,9 @@ void dialog_changed(buf_T *buf, bool checkall)
|
||||
|
||||
// restore to empty when write failed
|
||||
if (empty_bufname) {
|
||||
// prevent double free
|
||||
if (buf->b_sfname != buf->b_ffname) {
|
||||
XFREE_CLEAR(buf->b_sfname);
|
||||
}
|
||||
buf->b_fname = NULL;
|
||||
XFREE_CLEAR(buf->b_ffname);
|
||||
XFREE_CLEAR(buf->b_sfname);
|
||||
unchanged(buf, true, false);
|
||||
}
|
||||
} else if (ret == VIM_NO) {
|
||||
|
Loading…
Reference in New Issue
Block a user