4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: GTK GUI: the cursor disappears when doing ":vsp" and the Vim
12 window is maximized. (Dominique Pelle, Denis Smolyar)
13 Solution: Don't change "Columns" back to an old value at a wrong moment.
14 Do change "Rows" when it should not be a problem.
18 *** ../vim-7.2.064/src/gui.c Fri Nov 28 21:26:50 2008
19 --- src/gui.c Wed Dec 3 18:01:21 2008
25 ! need_set_size = RESIZE_VERT;
28 if (!gui_use_tabline())
33 ! need_set_size |= RESIZE_VERT;
36 if (!gui_use_tabline())
39 if (gui.which_scrollbars[i] != prev_which_scrollbars[i])
42 ! need_set_size = RESIZE_VERT;
44 ! need_set_size = RESIZE_HOR;
45 if (gui.which_scrollbars[i])
49 if (gui.which_scrollbars[i] != prev_which_scrollbars[i])
52 ! need_set_size |= RESIZE_VERT;
54 ! need_set_size |= RESIZE_HOR;
55 if (gui.which_scrollbars[i])
60 gui_mch_enable_menu(gui.menu_is_active);
62 prev_menu_is_active = gui.menu_is_active;
63 ! need_set_size = RESIZE_VERT;
64 if (gui.menu_is_active)
68 gui_mch_enable_menu(gui.menu_is_active);
70 prev_menu_is_active = gui.menu_is_active;
71 ! need_set_size |= RESIZE_VERT;
72 if (gui.menu_is_active)
78 gui_mch_show_toolbar(using_toolbar);
79 prev_toolbar = using_toolbar;
80 ! need_set_size = RESIZE_VERT;
86 gui_mch_show_toolbar(using_toolbar);
87 prev_toolbar = using_toolbar;
88 ! need_set_size |= RESIZE_VERT;
95 gui_mch_enable_footer(using_footer);
96 prev_footer = using_footer;
97 ! need_set_size = RESIZE_VERT;
103 gui_mch_enable_footer(using_footer);
104 prev_footer = using_footer;
105 ! need_set_size |= RESIZE_VERT;
111 prev_tearoff = using_tearoff;
119 /* Adjust the size of the window to make the text area keep the
120 * same size and to avoid that part of our window is off-screen
122 prev_tearoff = using_tearoff;
125 ! if (need_set_size != 0)
128 ! long prev_Columns = Columns;
129 ! long prev_Rows = Rows;
131 /* Adjust the size of the window to make the text area keep the
132 * same size and to avoid that part of our window is off-screen
135 * If you remove this, please test this command for resizing
136 * effects (with optional left scrollbar): ":vsp|q|vsp|q|vsp|q".
137 * Don't do this while starting up though.
138 ! * And don't change Rows, it may have be reduced intentionally
139 ! * when adding menu/toolbar/tabline. */
147 * If you remove this, please test this command for resizing
148 * effects (with optional left scrollbar): ":vsp|q|vsp|q|vsp|q".
149 * Don't do this while starting up though.
150 ! * Don't change Rows when adding menu/toolbar/tabline.
151 ! * Don't change Columns when adding vertical toolbar. */
152 ! if (!gui.starting && need_set_size != (RESIZE_VERT | RESIZE_HOR))
154 ! if ((need_set_size & RESIZE_VERT) == 0)
156 ! if ((need_set_size & RESIZE_HOR) == 0)
157 ! Columns = prev_Columns;
161 *** ../vim-7.2.064/src/version.c Wed Dec 3 13:38:00 2008
162 --- src/version.c Wed Dec 3 18:47:11 2008
166 { /* Add new patch number below this line */
172 Seen on the back of a biker's vest: If you can read this, my wife fell off.
174 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
175 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
176 \\\ download, build and distribute -- http://www.A-A-P.org ///
177 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///