* The -w option now also sets the scroll size for the 'z' command.

This commit is contained in:
Gunnar Ritter 2005-02-17 12:41:23 +00:00
parent f99a42d652
commit b737eb9531
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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;