diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-04 03:49:54 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-04 03:49:54 +0000 |
commit | b0af9c9656bed74c445cc0b4c4fa9547753467fa (patch) | |
tree | 112c22e499c43666011af8b0e4d1b52fd56b199d /distrib/special | |
parent | 5f5b744cb73e393d3d58b6c044ce07407abcad1c (diff) |
Correctly set dlines on terminal resize; missed this in rev 1.20.
Diffstat (limited to 'distrib/special')
-rw-r--r-- | distrib/special/more/more.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/special/more/more.c b/distrib/special/more/more.c index bc441a111d6..de029193027 100644 --- a/distrib/special/more/more.c +++ b/distrib/special/more/more.c @@ -1,4 +1,4 @@ -/* $OpenBSD: more.c,v 1.21 2003/06/04 03:37:01 millert Exp $ */ +/* $OpenBSD: more.c,v 1.22 2003/06/04 03:49:53 millert Exp $ */ /*- * Copyright (c) 1980 The Regents of the University of California. @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)more.c 5.28 (Berkeley) 3/1/93"; #else -static const char rcsid[] = "$OpenBSD: more.c,v 1.21 2003/06/04 03:37:01 millert Exp $"; +static const char rcsid[] = "$OpenBSD: more.c,v 1.22 2003/06/04 03:49:53 millert Exp $"; #endif #endif /* not lint */ @@ -1552,7 +1552,7 @@ handle_signal(int sig) nscroll = Lpp/2 - 1; if (nscroll <= 0) nscroll = 1; - dlines = Lpp - (noscroll ? 1 : 2); + dlines = Lpp - 1; } if (win.ws_col != 0) Mcol = win.ws_col; |