Module Name: src
Committed By: roy
Date: Tue Jan 10 23:28:45 UTC 2017
Modified Files:
src/lib/libcurses: resize.c
Log Message:
Fix resizing terms.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/resize.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/resize.c
diff -u src/lib/libcurses/resize.c:1.23 src/lib/libcurses/resize.c:1.24
--- src/lib/libcurses/resize.c:1.23 Tue Jan 10 10:13:24 2017
+++ src/lib/libcurses/resize.c Tue Jan 10 23:28:45 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: resize.c,v 1.23 2017/01/10 10:13:24 roy Exp $ */
+/* $NetBSD: resize.c,v 1.24 2017/01/10 23:28:45 roy Exp $ */
/*
* Copyright (c) 2001
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)resize.c blymn 2001/08/26";
#else
-__RCSID("$NetBSD: resize.c,v 1.23 2017/01/10 10:13:24 roy Exp $");
+__RCSID("$NetBSD: resize.c,v 1.24 2017/01/10 23:28:45 roy Exp $");
#endif
#endif /* not lint */
@@ -145,8 +145,7 @@ is_term_resized(int nlines, int ncols)
{
return (nlines > 0 && ncols > 0 &&
- (nlines != _cursesi_screen->LINES
- + _cursesi_screen->ripped_top + _cursesi_screen->ripped_bottom ||
+ (nlines != _cursesi_screen->LINES ||
ncols != _cursesi_screen->COLS));
}
@@ -167,7 +166,7 @@ resizeterm(int nlines, int ncols)
if (!is_term_resized(nlines, ncols))
return OK;
- result = resizeterm(nlines, ncols);
+ result = resize_term(nlines, ncols);
clearok(curscr, TRUE);
return result;
}