summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-27 00:02:13 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-27 00:02:13 +0000
commitf193fffd16563cfbe7c02a21e19c8bb11707581d (patch)
tree4bae3092421aa986103b8000b1012989a9ea49e6 /src/gui.c
parent551dbcc9b604c2992f908fb475e797fcc116315b (diff)
updated for version 7.0f02v7.0f02
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index 4006891783..9a69a09f39 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3507,14 +3507,19 @@ send_tabline_event(nr)
if (nr == tabpage_index(curtab))
return FALSE;
+
+ /* Don't put events in the input queue now. */
+ if (hold_gui_events
# ifdef FEAT_CMDWIN
- if (cmdwin_type != 0)
+ || cmdwin_type != 0
+# endif
+ )
{
/* Set it back to the current tab page. */
gui_mch_set_curtab(tabpage_index(curtab));
return FALSE;
}
-# endif
+
string[0] = CSI;
string[1] = KS_TABLINE;
string[2] = KE_FILLER;
@@ -3534,6 +3539,10 @@ send_tabline_menu_event(tabidx, event)
{
char_u string[3];
+ /* Don't put events in the input queue now. */
+ if (hold_gui_events)
+ return;
+
string[0] = CSI;
string[1] = KS_TABMENU;
string[2] = KE_FILLER;