]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.109
- updated to 0.7.5
[packages/vim.git] / 7.1.109
1 To: vim-dev@vim.org
2 Subject: patch 7.1.109
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.109
11 Problem:    GTK: when there are many tab pages, clicking on the arrow left of
12             the labels moves to the next tab page on the right. (Simeon Bird)
13 Solution:   Check the X coordinate of the click and pass -1 as value for the
14             left arrow.
15 Files:      src/gui_gtk_x11.c, src/term.c
16
17
18 *** ../vim-7.1.108/src/gui_gtk_x11.c    Wed Sep  5 21:45:54 2007
19 --- src/gui_gtk_x11.c   Fri Sep 14 20:59:55 2007
20 ***************
21 *** 3223,3230 ****
22         {
23             if (clicked_page == 0)
24             {
25 !               /* Click after all tabs moves to next tab page. */
26 !               if (send_tabline_event(0) && gtk_main_level() > 0)
27                     gtk_main_quit();
28             }
29   #ifndef HAVE_GTK2
30 --- 3223,3231 ----
31         {
32             if (clicked_page == 0)
33             {
34 !               /* Click after all tabs moves to next tab page.  When "x" is
35 !                * small guess it's the left button. */
36 !               if (send_tabline_event(x < 50 ? -1 : 0) && gtk_main_level() > 0)
37                     gtk_main_quit();
38             }
39   #ifndef HAVE_GTK2
40 *** ../vim-7.1.108/src/term.c   Thu May 10 20:48:32 2007
41 --- src/term.c  Fri Sep 14 20:56:40 2007
42 ***************
43 *** 4809,4814 ****
44 --- 4809,4816 ----
45             if (num_bytes == -1)
46                 return -1;
47             current_tab = (int)bytes[0];
48 +           if (current_tab == 255)     /* -1 in a byte gives 255 */
49 +               current_tab = -1;
50             slen += num_bytes;
51         }
52         else if (key_name[0] == (int)KS_TABMENU)
53 *** ../vim-7.1.108/src/version.c        Fri Sep 14 19:56:18 2007
54 --- src/version.c       Sat Sep 15 14:05:25 2007
55 ***************
56 *** 668,669 ****
57 --- 668,671 ----
58   {   /* Add new patch number below this line */
59 + /**/
60 +     109,
61   /**/
62
63 -- 
64 No letters of the alphabet were harmed in the creation of this message.
65
66  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
67 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
68 \\\        download, build and distribute -- http://www.A-A-P.org        ///
69  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.035433 seconds and 3 git commands to generate.