* 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

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