mirror of
https://github.com/neovim/neovim
synced 2025-07-19 02:31:45 +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#15415a0b5bc1285
Co-authored-by: Christian Brabandt <cb@256bit.org> (cherry picked from commit4c886d0e73
)
This commit is contained in:
committed by
github-actions[bot]
parent
05e72488b9
commit
2e1f656eb7
@ -226,12 +226,9 @@ void dialog_changed(buf_T *buf, bool checkall)
|
|||||||
|
|
||||||
// restore to empty when write failed
|
// restore to empty when write failed
|
||||||
if (empty_bufname) {
|
if (empty_bufname) {
|
||||||
// prevent double free
|
|
||||||
if (buf->b_sfname != buf->b_ffname) {
|
|
||||||
XFREE_CLEAR(buf->b_sfname);
|
|
||||||
}
|
|
||||||
buf->b_fname = NULL;
|
buf->b_fname = NULL;
|
||||||
XFREE_CLEAR(buf->b_ffname);
|
XFREE_CLEAR(buf->b_ffname);
|
||||||
|
XFREE_CLEAR(buf->b_sfname);
|
||||||
unchanged(buf, true, false);
|
unchanged(buf, true, false);
|
||||||
}
|
}
|
||||||
} else if (ret == VIM_NO) {
|
} else if (ret == VIM_NO) {
|
||||||
|
Reference in New Issue
Block a user