dialog_changed: Remove mistaken assert #9069

It fails with `nvim -u NONE -c 'set modified' -c 'confirm q'`.

Introduced in 3dffc842f (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:
Daniel Hahler 2018-09-30 15:47:02 +02:00 committed by Justin M. Keyes
parent c6d36b97ba
commit 4c57169745

View File

@ -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);