mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
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.
5a49789a9b
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user