From 9755a2ffd5727c7fc0576e60a21368618978c504 Mon Sep 17 00:00:00 2001 From: Grzegorz Milka Date: Tue, 18 Oct 2016 02:02:47 +0200 Subject: 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. https://github.com/vim/vim/commit/5a49789a9b1f6447aeafbbbdd5b235dd10c471d5 --- src/nvim/window.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/window.c') diff --git a/src/nvim/window.c b/src/nvim/window.c index 2fb1fbede9..e7be1fb7f8 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -3243,10 +3243,7 @@ void goto_tabpage(int n) if (text_locked()) { /* Not allowed when editing the command line. */ - if (cmdwin_type != 0) - EMSG(_(e_cmdwin)); - else - EMSG(_(e_secure)); + text_locked_msg(); return; } -- cgit