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/buffer.c | |
parent | e04a48f20413f3f926d26394fad6431795348af7 (diff) | |
download | vim-git-a8596c47724b97822924f5ffe5d50476de31ff4b.tar.gz |
updated for version 7.3.551v7.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/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 00d1f3535..e27626eb1 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4470,7 +4470,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); + goto_tabpage_tp(first_tabpage, TRUE); for (;;) { tpnext = curtab->tp_next; @@ -4582,7 +4582,7 @@ do_arg_all(count, forceit, keep_tabs) if (!valid_tabpage(tpnext)) tpnext = first_tabpage; /* start all over...*/ # endif - goto_tabpage_tp(tpnext); + goto_tabpage_tp(tpnext, TRUE); } /* @@ -4686,13 +4686,13 @@ do_arg_all(count, forceit, keep_tabs) if (last_curtab != new_curtab) { if (valid_tabpage(last_curtab)) - goto_tabpage_tp(last_curtab); + goto_tabpage_tp(last_curtab, 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); + goto_tabpage_tp(new_curtab, TRUE); if (win_valid(new_curwin)) win_enter(new_curwin, FALSE); @@ -4744,7 +4744,7 @@ ex_buffer_all(eap) */ #ifdef FEAT_WINDOWS if (had_tab > 0) - goto_tabpage_tp(first_tabpage); + goto_tabpage_tp(first_tabpage, TRUE); for (;;) { #endif @@ -4784,7 +4784,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); + goto_tabpage_tp(tpnext, TRUE); } #endif |