mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
dialog_changed: Remove mistaken assert #9069
It fails with `nvim -u NONE -c 'set modified' -c 'confirm q'`. Introduced in3dffc842f
(vim-patch:8.0.0983), but the Vim patch [1] does not have this assertion. NULL gets handled in `dialog_msg` [2]. 1:3f9a1ff141
2:c6d36b97ba/src/nvim/ex_docmd.c (L9704-L9705)
This commit is contained in:
parent
c6d36b97ba
commit
4c57169745
@ -1285,7 +1285,6 @@ void dialog_changed(buf_T *buf, bool checkall)
|
||||
int ret;
|
||||
exarg_T ea;
|
||||
|
||||
assert(buf->b_fname != NULL);
|
||||
dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname);
|
||||
if (checkall) {
|
||||
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user