mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00: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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user