]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-109 v7.1.109
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Sep 2007 12:07:46 +0000 (12:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Sep 2007 12:07:46 +0000 (12:07 +0000)
src/gui_gtk_x11.c
src/term.c
src/version.c

index c5b11285638cdc84d4d1daca9f69145553e5c850..f37410643dc3253a8a01429c32060ea1104fd1a4 100644 (file)
@@ -3223,8 +3223,9 @@ on_tabline_menu(GtkWidget *widget, GdkEvent *event)
        {
            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
index ab5ff15c8508a380f899efdb50208aa37670bb88..7d148cdfc2161d327bd31eaff6bc54f83374500e 100644 (file)
@@ -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)
index 04ca162d8da3a06b8799a16513ab239607ef835a..300bd3eef3850fb43d2f2e6a45213da0f6eee45a 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    109,
 /**/
     108,
 /**/