aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2018-09-30 15:47:02 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-09-30 15:47:02 +0200
commit4c5716974586e8c372a84df00f0e6f798424e712 (patch)
tree797b54305a951f9c516b77c06dfed939e66ac5e9 /src
parentc6d36b97bac0df86c1120af323db1b577dc90629 (diff)
downloadrneovim-4c5716974586e8c372a84df00f0e6f798424e712.tar.gz
rneovim-4c5716974586e8c372a84df00f0e6f798424e712.tar.bz2
rneovim-4c5716974586e8c372a84df00f0e6f798424e712.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds2.c1
1 files changed, 0 insertions, 1 deletions
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);