mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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:
@@ -2132,13 +2132,18 @@ text_locked(void)
|
||||
*/
|
||||
void
|
||||
text_locked_msg(void)
|
||||
{
|
||||
EMSG(_(get_text_locked_msg()));
|
||||
}
|
||||
|
||||
char_u *
|
||||
get_text_locked_msg(void)
|
||||
{
|
||||
#ifdef FEAT_CMDWIN
|
||||
if (cmdwin_type != 0)
|
||||
EMSG(_(e_cmdwin));
|
||||
else
|
||||
return e_cmdwin;
|
||||
#endif
|
||||
EMSG(_(e_secure));
|
||||
return e_secure;
|
||||
}
|
||||
|
||||
#if defined(FEAT_AUTOCMD) || defined(PROTO)
|
||||
|
Reference in New Issue
Block a user