To:
[email protected]
Subject: Patch 5.4n.14
From: Bram Moolenaar <
[email protected]>
Date: Wed, 07 Jul 1999 20:41:59 +0200
Sender:
[email protected]
Content-type: text
Status: U
Patch 5.4n.14
Problem: Win32 GUI: When using ":winsize 80 46" and the height is more than
what fits on the screen, the window size was made smaller than
asked for (that's OK) and Vim crashed (that's not OK)>
Solution: Call check_winsize() from gui_set_winsize() to resize the windows.
Files: src/gui.c
*** ../vim-5.4n/src/gui.c Sun Jul 4 20:35:37 1999
--- src/gui.c Wed Jul 7 18:42:46 1999
***************
*** 1041,1048 ****
if (height > screen_h)
{
Rows = (screen_h - base_height) / gui.char_height;
! if (Rows < MIN_LINES)
! Rows = MIN_LINES;
gui.num_rows = Rows;
gui_reset_scroll_region();
height = Rows * gui.char_height + base_height;
--- 1045,1051 ----
if (height > screen_h)
{
Rows = (screen_h - base_height) / gui.char_height;
! check_winsize();
gui.num_rows = Rows;
gui_reset_scroll_region();
height = Rows * gui.char_height + base_height;
--
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
LAUNCELOT
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
--/-/---- Bram Moolenaar ----
[email protected] ----
[email protected] ---\-\--
\ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /