]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.022
- initial import
[packages/vim.git] / 6.2.022
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.022 (extra)
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 6.2.022 (extra)
11 Problem:    Win32: After deleting a menu item it still appears in a tear-off
12             window.
13 Solution:   Set the mode to zero for the deleted item. (Yasuhiro Matsumoto)
14 Files:      src/gui_w32.c
15
16
17 *** ../vim-6.2.021/src/gui_w32.c        Sun Jun  1 13:37:05 2003
18 --- src/gui_w32.c       Sun Jun 22 17:13:50 2003
19 ***************
20 *** 2012,2018 ****
21 --- 2012,2022 ----
22         if (menu->parent != NULL
23                 && menu->parent->children != NULL
24                 && IsWindow(menu->parent->tearoff_handle))
25 +       {
26 +           /* This menu must not show up when rebuilding the tearoff window. */
27 +           menu->modes = 0;
28             rebuild_tearoff(menu->parent);
29 +       }
30   #endif
31       }
32   }
33 ***************
34 *** 3049,3054 ****
35 --- 3054,3061 ----
36   
37       for ( ; menu != NULL; menu = menu->next)
38       {
39 +       if (menu->modes == 0)   /* this menu has just been deleted */
40 +           continue;
41         if (menu_is_separator(menu->dname))
42         {
43             sepPadding += 3;
44 *** ../vim-6.2.021/src/version.c        Sat Jul  5 19:20:12 2003
45 --- src/version.c       Thu Jul 24 20:58:43 2003
46 ***************
47 *** 632,633 ****
48 --- 632,635 ----
49   {   /* Add new patch number below this line */
50 + /**/
51 +     22,
52   /**/
53
54 -- 
55 I am always surprised in the Linux world how quickly solutions can be
56 obtained.  (Imagine sending an email to Bill Gates, asking why Windows
57 crashed, and how to fix it...  and then getting an answer that fixed the
58 problem... <0>_<0> !)                         -- Mark Langdon
59
60  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
61 ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
62 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
63  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
This page took 0.026222 seconds and 3 git commands to generate.