To: vim-dev@vim.org Subject: Patch 5.6.005 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.005 Problem: When 'winminheight' is zero, CTRL-W - with a big number causes a crash. (David Kotchan) Solution: Check for negative window height in win_setheight(). Files: src/window.c *** ../vim-5.6.4/src/window.c Thu Jan 13 10:59:45 2000 --- src/window.c Fri Jan 21 12:58:04 2000 *************** *** 1470,1476 **** { /* Always keep current window at least one line high, even when * 'winminheight' is zero */ ! if (height == 0) /* need at least one line */ { height = 1; room = 1; --- 1470,1476 ---- { /* Always keep current window at least one line high, even when * 'winminheight' is zero */ ! if (height <= 0) /* need at least one line */ { height = 1; room = 1; *** ../vim-5.6.4/src/version.c Fri Jan 21 12:14:46 2000 --- src/version.c Fri Jan 21 13:03:11 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 5, /**/ -- ZOOT: I'm afraid our life must seem very dull and quiet compared to yours. We are but eightscore young blondes, all between sixteen and nineteen-and-a-half, cut off in this castle, with no one to protect us. Oooh. It is a lonely life ... bathing ... dressing ... undressing ... making exciting underwear.... "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /