Source-Changes-HG archive

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

[src/netbsd-8]: src/lib/libcurses Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/a785aaa14b3e
branches:  netbsd-8
changeset: 852015:a785aaa14b3e
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 27 15:02:26 2018 +0000

description:
Pull up following revision(s) (requested by kamil in ticket #1040):

        lib/libcurses/move.c: revision 1.19

According to POSIX moving the cursor in curses(3) touches the window

Mark the old and new lines as dirty, so they will be refreshed upon next
call to getch(3)-like routine.

This also matches the ncurses behavior.
Reviewed by <roy>

diffstat:

 lib/libcurses/move.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 9ec9a49f0d1d -r a785aaa14b3e lib/libcurses/move.c
--- a/lib/libcurses/move.c      Thu Sep 27 14:59:28 2018 +0000
+++ b/lib/libcurses/move.c      Thu Sep 27 15:02:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: move.c,v 1.18 2017/01/06 13:53:18 roy Exp $    */
+/*     $NetBSD: move.c,v 1.18.6.1 2018/09/27 15:02:26 martin Exp $     */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)move.c     8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: move.c,v 1.18 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: move.c,v 1.18.6.1 2018/09/27 15:02:26 martin Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -72,8 +72,10 @@
                return ERR;
        win->curx = x;
        win->alines[win->cury]->flags &= ~__ISPASTEOL;
+       win->alines[win->cury]->flags |= __ISDIRTY;
        win->cury = y;
        win->alines[y]->flags &= ~__ISPASTEOL;
+       win->alines[y]->flags |= __ISDIRTY;
        return OK;
 }
 



Home | Main Index | Thread Index | Old Index