1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2016-09-03 16:29:04 +02:00
parent dd905a2ae1
commit 5a49789a9b
8 changed files with 59 additions and 26 deletions

View File

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