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>
(cherry picked from commit 4c886d0e73)
This commit is contained in:
zeertzjq
2024-08-03 08:14:31 +08:00
committed by github-actions[bot]
parent 05e72488b9
commit 2e1f656eb7

View File

@ -226,12 +226,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) {