summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-03 16:29:04 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-03 16:29:04 +0200
commit5a49789a9b1f6447aeafbbbdd5b235dd10c471d5 (patch)
tree611853ba4f58cc676cffdfdf622dad348372c269 /src/ex_docmd.c
parentdd905a2ae14bf2ee59a068f1c3acbca1ff0b7067 (diff)
patch 7.4.2312v7.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.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 866b347d64..b568e46c3b 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2475,12 +2475,7 @@ do_one_cmd(
&& !IS_USER_CMDIDX(ea.cmdidx))
{
/* Command not allowed when editing the command line. */
-#ifdef FEAT_CMDWIN
- if (cmdwin_type != 0)
- errormsg = (char_u *)_(e_cmdwin);
- else
-#endif
- errormsg = (char_u *)_(e_secure);
+ errormsg = get_text_locked_msg();
goto doend;
}
#ifdef FEAT_AUTOCMD