Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Fix resizing terms.



details:   https://anonhg.NetBSD.org/src/rev/8fe0fe1ac6b2
branches:  trunk
changeset: 820532:8fe0fe1ac6b2
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Jan 10 23:28:45 2017 +0000

description:
Fix resizing terms.

diffstat:

 lib/libcurses/resize.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 572caa5807a3 -r 8fe0fe1ac6b2 lib/libcurses/resize.c
--- a/lib/libcurses/resize.c    Tue Jan 10 23:08:13 2017 +0000
+++ b/lib/libcurses/resize.c    Tue Jan 10 23:28:45 2017 +0000
@@ -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 @@
 {
 
        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 @@
        if (!is_term_resized(nlines, ncols))
                return OK;
 
-       result = resizeterm(nlines, ncols);
+       result = resize_term(nlines, ncols);
        clearok(curscr, TRUE);
        return result;
 }



Home | Main Index | Thread Index | Old Index