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/buffer.c | |
parent | 84a05acc8c341c2be383198496764992ae971a46 (diff) |
updated for version 7.3.926v7.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/buffer.c')
-rw-r--r-- | src/buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index 54f6544254..ae744d28b2 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4551,7 +4551,7 @@ do_arg_all(count, forceit, keep_tabs) * When the ":tab" modifier was used do this for all tab pages. */ if (had_tab > 0) - goto_tabpage_tp(first_tabpage, TRUE); + goto_tabpage_tp(first_tabpage, TRUE, TRUE); for (;;) { tpnext = curtab->tp_next; @@ -4663,7 +4663,7 @@ do_arg_all(count, forceit, keep_tabs) if (!valid_tabpage(tpnext)) tpnext = first_tabpage; /* start all over...*/ # endif - goto_tabpage_tp(tpnext, TRUE); + goto_tabpage_tp(tpnext, TRUE, TRUE); } /* @@ -4767,13 +4767,13 @@ do_arg_all(count, forceit, keep_tabs) if (last_curtab != new_curtab) { if (valid_tabpage(last_curtab)) - goto_tabpage_tp(last_curtab, TRUE); + goto_tabpage_tp(last_curtab, TRUE, TRUE); if (win_valid(last_curwin)) win_enter(last_curwin, FALSE); } /* to window with first arg */ if (valid_tabpage(new_curtab)) - goto_tabpage_tp(new_curtab, TRUE); + goto_tabpage_tp(new_curtab, TRUE, TRUE); if (win_valid(new_curwin)) win_enter(new_curwin, FALSE); @@ -4825,7 +4825,7 @@ ex_buffer_all(eap) */ #ifdef FEAT_WINDOWS if (had_tab > 0) - goto_tabpage_tp(first_tabpage, TRUE); + goto_tabpage_tp(first_tabpage, TRUE, TRUE); for (;;) { #endif @@ -4865,7 +4865,7 @@ ex_buffer_all(eap) /* Without the ":tab" modifier only do the current tab page. */ if (had_tab == 0 || tpnext == NULL) break; - goto_tabpage_tp(tpnext, TRUE); + goto_tabpage_tp(tpnext, TRUE, TRUE); } #endif |