diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-03 16:29:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-03 16:29:04 +0200 |
commit | 5a49789a9b1f6447aeafbbbdd5b235dd10c471d5 (patch) | |
tree | 611853ba4f58cc676cffdfdf622dad348372c269 /src/window.c | |
parent | dd905a2ae14bf2ee59a068f1c3acbca1ff0b7067 (diff) | |
download | vim-git-5a49789a9b1f6447aeafbbbdd5b235dd10c471d5.tar.gz |
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/window.c')
-rw-r--r-- | src/window.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index 2f3ec8c62..4f992711f 100644 --- a/src/window.c +++ b/src/window.c @@ -3912,12 +3912,7 @@ goto_tabpage(int n) if (text_locked()) { /* Not allowed when editing the command line. */ -#ifdef FEAT_CMDWIN - if (cmdwin_type != 0) - EMSG(_(e_cmdwin)); - else -#endif - EMSG(_(e_secure)); + text_locked_msg(); return; } |