diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-06 04:50:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-06 04:50:35 +0200 |
commit | 49e649fc2eb196b2476a3bc2947c7a89e0f69c2f (patch) | |
tree | 64955601e26e5749b5d1f3217746d899424778e5 /src/eval.c | |
parent | 84a05acc8c341c2be383198496764992ae971a46 (diff) | |
download | vim-49e649fc2eb196b2476a3bc2947c7a89e0f69c2f.zip |
updated for version 7.3.926
Problem: Autocommands are triggered by setwinvar() et al. Missing BufEnter
on :tabclose. Duplicate WinEnter on :tabclose. Wrong order of
events for :tablose and :tabnew.
Solution: Fix these autocommand events. (Zyx)
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 04ed2c5bc..ed2a9d3e2 100644 --- a/src/eval.c +++ b/src/eval.c @@ -16604,7 +16604,7 @@ f_settabvar(argvars, rettv) if (tp != NULL && varname != NULL && varp != NULL) { save_curtab = curtab; - goto_tabpage_tp(tp, TRUE); + goto_tabpage_tp(tp, FALSE, FALSE); tabvarname = alloc((unsigned)STRLEN(varname) + 3); if (tabvarname != NULL) @@ -16617,7 +16617,7 @@ f_settabvar(argvars, rettv) /* Restore current tabpage */ if (valid_tabpage(save_curtab)) - goto_tabpage_tp(save_curtab, TRUE); + goto_tabpage_tp(save_curtab, FALSE, FALSE); } } @@ -16654,7 +16654,7 @@ switch_win(save_curwin, save_curtab, win, tp) /* set curwin to be our win, temporarily */ *save_curwin = curwin; *save_curtab = curtab; - goto_tabpage_tp(tp, TRUE); + goto_tabpage_tp(tp, FALSE, FALSE); if (!win_valid(win)) return FAIL; curwin = win; @@ -16672,7 +16672,7 @@ restore_win(save_curwin, save_curtab) /* Restore current tabpage and window, if still valid (autocommands can * make them invalid). */ if (valid_tabpage(save_curtab)) - goto_tabpage_tp(save_curtab, TRUE); + goto_tabpage_tp(save_curtab, FALSE, FALSE); if (win_valid(save_curwin)) { curwin = save_curwin; |