]> git.pld-linux.org Git - packages/vim.git/blame - 6.2.022
- fix for current libselinux
[packages/vim.git] / 6.2.022
CommitLineData
d8621708 1To: vim-dev@vim.org
2Subject: Patch 6.2.022 (extra)
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.2.022 (extra)
11Problem: Win32: After deleting a menu item it still appears in a tear-off
12 window.
13Solution: Set the mode to zero for the deleted item. (Yasuhiro Matsumoto)
14Files: 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--
55I am always surprised in the Linux world how quickly solutions can be
56obtained. (Imagine sending an email to Bill Gates, asking why Windows
57crashed, and how to fix it... and then getting an answer that fixed the
58problem... <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.084062 seconds and 4 git commands to generate.