# HG changeset patch # User vimboss # Date 1189858066 0 # Node ID 1002128c68dbe2f69466b1b2cb354b00eec2980b # Parent b4791bb4fbff451efa3ffdabd4e26a668eda2283 updated for version 7.1-109 diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -3223,8 +3223,9 @@ on_tabline_menu(GtkWidget *widget, GdkEv { if (clicked_page == 0) { - /* Click after all tabs moves to next tab page. */ - if (send_tabline_event(0) && gtk_main_level() > 0) + /* Click after all tabs moves to next tab page. When "x" is + * small guess it's the left button. */ + if (send_tabline_event(x < 50 ? -1 : 0) && gtk_main_level() > 0) gtk_main_quit(); } #ifndef HAVE_GTK2 diff --git a/src/term.c b/src/term.c --- a/src/term.c +++ b/src/term.c @@ -4809,6 +4809,8 @@ check_termcode(max_offset, buf, buflen) if (num_bytes == -1) return -1; current_tab = (int)bytes[0]; + if (current_tab == 255) /* -1 in a byte gives 255 */ + current_tab = -1; slen += num_bytes; } else if (key_name[0] == (int)KS_TABMENU) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 109, +/**/ 108, /**/ 107,