Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses on repaint, we must look at attributes present...



details:   https://anonhg.NetBSD.org/src/rev/5eb83f666726
branches:  trunk
changeset: 495637:5eb83f666726
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Aug 02 10:50:49 2000 +0000

description:
on repaint, we must look at attributes present on curscr.
check __ISPASTEOL on curscr->lines, not on win->lines.  PR 10732.

diffstat:

 lib/libcurses/refresh.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0eac5ecc7ee6 -r 5eb83f666726 lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Wed Aug 02 09:06:56 2000 +0000
+++ b/lib/libcurses/refresh.c   Wed Aug 02 10:50:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.39 2000/08/01 04:17:09 itojun Exp $      */
+/*     $NetBSD: refresh.c,v 1.40 2000/08/02 10:50:49 itojun Exp $      */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c  8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.39 2000/08/01 04:17:09 itojun Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.40 2000/08/02 10:50:49 itojun Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -384,7 +384,7 @@
        else
                win = __virtscr;
        /* Is the cursor still on the end of the last line? */
-       if (wy > 0 && win->lines[wy - 1]->flags & __ISPASTEOL) {
+       if (wy > 0 && curscr->lines[wy - 1]->flags & __ISPASTEOL) {
                domvcur(ly, lx, ly + 1, 0);
                ly++;
                lx = 0;



Home | Main Index | Thread Index | Old Index