diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-06-13 14:28:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-06-13 14:28:20 +0200 |
commit | a8596c47724b97822924f5ffe5d50476de31ff4b (patch) | |
tree | 77bfb95357a498955a7e8b2c8662b5a1b5b76c0d /src/eval.c | |
parent | e04a48f20413f3f926d26394fad6431795348af7 (diff) | |
download | vim-a8596c47724b97822924f5ffe5d50476de31ff4b.zip |
updated for version 7.3.551
Problem: When using :tablose a TabEnter autocommand is triggered too early.
(Karthick)
Solution: Don't trigger *Enter autocommands before closing the tab.
(Christian Brabandt)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index b0e4b31fa..d238dc2ba 100644 --- a/src/eval.c +++ b/src/eval.c @@ -16415,7 +16415,7 @@ f_settabvar(argvars, rettv) if (tp != NULL && varname != NULL && varp != NULL) { save_curtab = curtab; - goto_tabpage_tp(tp); + goto_tabpage_tp(tp, TRUE); tabvarname = alloc((unsigned)STRLEN(varname) + 3); if (tabvarname != NULL) @@ -16428,7 +16428,7 @@ f_settabvar(argvars, rettv) /* Restore current tabpage */ if (valid_tabpage(save_curtab)) - goto_tabpage_tp(save_curtab); + goto_tabpage_tp(save_curtab, TRUE); } } @@ -16492,7 +16492,7 @@ setwinvar(argvars, rettv, off) /* set curwin to be our win, temporarily */ save_curwin = curwin; save_curtab = curtab; - goto_tabpage_tp(tp); + goto_tabpage_tp(tp, TRUE); if (!win_valid(win)) return; curwin = win; @@ -16527,7 +16527,7 @@ setwinvar(argvars, rettv, off) /* Restore current tabpage and window, if still valid (autocomands can * make them invalid). */ if (valid_tabpage(save_curtab)) - goto_tabpage_tp(save_curtab); + goto_tabpage_tp(save_curtab, TRUE); if (win_valid(save_curwin)) { curwin = save_curwin; |