From b737eb95317170ebc3c16b985db412cf387cbb27 Mon Sep 17 00:00:00 2001 From: Gunnar Ritter Date: Thu, 17 Feb 2005 12:41:23 +0000 Subject: [PATCH] * The -w option now also sets the scroll size for the 'z' command. --- Changes | 7 ++++--- ex_tty.c | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Changes b/Changes index 0cef2b8..4901874 100644 --- a/Changes +++ b/Changes @@ -26,9 +26,10 @@ Release ... * When moving up or down to a row with different column arrangement while the cursor is positioned over a multicolumn character, the leftmost character above the original position is chosen in the new row. -* If both the '-t' and the '-c' option are given, the '-t' option is now - processed first, i.e. the command is executed at the position where the - tag was found. +* If both the -t and the -c option are given, the -t option is now + processed first, i.e. the command is executed at the position where + the tag was found. +* The -w option now also sets the scroll size for the 'z' command. Release 1/19/05 * The last release erroneously made 'X' work like 'x' in visual mode. It now diff --git a/ex_tty.c b/ex_tty.c index df5a696..4c2daf2 100644 --- a/ex_tty.c +++ b/ex_tty.c @@ -73,7 +73,7 @@ #ifndef lint #ifdef DOSCCS -static char sccsid[] = "@(#)ex_tty.c 1.27 (gritter) 12/1/04"; +static char sccsid[] = "@(#)ex_tty.c 1.28 (gritter) 2/17/05"; #endif #endif @@ -310,7 +310,10 @@ setsize(void) if (TCOLUMNS <= 4) TCOLUMNS = 1000; options[WINDOW].ovalue = options[WINDOW].odefault = l - 1; - if (defwind) options[WINDOW].ovalue = defwind; + if (defwind) { + options[WINDOW].ovalue = defwind; + l = defwind + 1; + } options[SCROLL].ovalue = options[SCROLL].odefault = HC ? 11 : ((l-1) / 2); if (i <= 0) TLINES = 2;