diff options
author | 2003-06-04 03:49:53 +0000 | |
---|---|---|
committer | 2003-06-04 03:49:53 +0000 | |
commit | f95b2b95b86a8c86d16e1705a5344bef7596f8b6 (patch) | |
tree | 40b3ab636cf7ea02ed80c61e78d9663f0e2a3066 | |
parent | Fix for machines w/ unsigned chars; part from drahn@ (diff) | |
download | wireguard-openbsd-f95b2b95b86a8c86d16e1705a5344bef7596f8b6.tar.xz wireguard-openbsd-f95b2b95b86a8c86d16e1705a5344bef7596f8b6.zip |
Correctly set dlines on terminal resize; missed this in rev 1.20.
-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; |