From 4c5716974586e8c372a84df00f0e6f798424e712 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 30 Sep 2018 15:47:02 +0200 Subject: [PATCH] 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: https://github.com/vim/vim/commit/3f9a1ff141412e9e85f7dff47d02946cb9be9228 2: https://github.com/neovim/neovim/blob/c6d36b97bac0df86c1120af323db1b577dc90629/src/nvim/ex_docmd.c#L9704-L9705 --- src/nvim/ex_cmds2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 6e695a8897..90fb7b8bc3 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -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);