To:
[email protected]
Subject: Patch 6.3b.027
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------
Patch 6.3b.027
Problem: Win32: When enabling the menu in a maximized window, Vim uses more
lines than what is room for. (Shizhu Pan)
Solution: When deciding to call shell_resized(), also compare the text area
size with Rows and Columns, not just with screen_Rows and
screen_Columns.
Files: src/gui.c
*** ../vim-6.3b.026/src/gui.c Sun May 16 22:38:42 2004
--- src/gui.c Fri Jun 4 15:30:48 2004
***************
*** 1235,1241 ****
if (State == ASKMORE || State == CONFIRM)
gui.row = gui.num_rows;
! if (gui.num_rows != screen_Rows || gui.num_cols != screen_Columns)
shell_resized();
#ifdef FEAT_GUI_BEOS
--- 1235,1244 ----
if (State == ASKMORE || State == CONFIRM)
gui.row = gui.num_rows;
! /* Only comparing Rows and Columns may be sufficient, but let's stay on
! * the safe side. */
! if (gui.num_rows != screen_Rows || gui.num_cols != screen_Columns
! || gui.num_rows != Rows || gui.num_cols != Columns)
shell_resized();
#ifdef FEAT_GUI_BEOS
*** ../vim-6.3b.026/src/version.c Wed Jun 2 17:42:57 2004
--- src/version.c Fri Jun 4 15:43:53 2004
***************
*** 643,644 ****
--- 643,646 ----
{ /* Add new patch number below this line */
+ /**/
+ 27,
/**/
--
Bumper sticker: Honk if you love peace and quiet.
/// Bram Moolenaar --
[email protected] --
http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P --
http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims --
http://ICCF.nl/click1.html ///