aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorGrzegorz Milka <grzegorzmilka@gmail.com>2016-10-18 02:02:47 +0200
committerGrzegorz Milka <grzegorzmilka@gmail.com>2016-10-23 00:41:45 +0200
commit9755a2ffd5727c7fc0576e60a21368618978c504 (patch)
tree573e946bce3ebb9380e1a9e2d7ed461341ea16ea /src/nvim/ex_docmd.c
parentc5c8a821341b71ae29786c97df7930a9581f7ab7 (diff)
downloadrneovim-9755a2ffd5727c7fc0576e60a21368618978c504.tar.gz
rneovim-9755a2ffd5727c7fc0576e60a21368618978c504.tar.bz2
rneovim-9755a2ffd5727c7fc0576e60a21368618978c504.zip
vim-patch:7.4.2312
Problem: Crash when autocommand moves to another tab. (Dominique Pelle) Solution: When navigating to another window halfway the :edit command go back to the right window. https://github.com/vim/vim/commit/5a49789a9b1f6447aeafbbbdd5b235dd10c471d5
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index cbe4d19d2c..5c84b5bb4e 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1772,10 +1772,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
if (text_locked() && !(ea.argt & CMDWIN)
&& !IS_USER_CMDIDX(ea.cmdidx)) {
/* Command not allowed when editing the command line. */
- if (cmdwin_type != 0)
- errormsg = (char_u *)_(e_cmdwin);
- else
- errormsg = (char_u *)_(e_secure);
+ errormsg = get_text_locked_msg();
goto doend;
}
/* Disallow editing another buffer when "curbuf_lock" is set.