Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Don't change the cursor position if __LEAVEOK.



details:   https://anonhg.NetBSD.org/src/rev/dc13a7981d98
branches:  trunk
changeset: 485438:dc13a7981d98
user:      jdc <jdc%NetBSD.org@localhost>
date:      Thu Apr 27 22:12:36 2000 +0000

description:
Don't change the cursor position if __LEAVEOK.

diffstat:

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

diffs (31 lines):

diff -r 30aa97ee42a1 -r dc13a7981d98 lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Thu Apr 27 21:40:41 2000 +0000
+++ b/lib/libcurses/refresh.c   Thu Apr 27 22:12:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.23 2000/04/27 00:26:19 jdc Exp $ */
+/*     $NetBSD: refresh.c,v 1.24 2000/04/27 22:12:36 jdc 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.23 2000/04/27 00:26:19 jdc Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.24 2000/04/27 22:12:36 jdc Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -200,8 +200,10 @@
                retval = OK;
        if (retval == OK) {
                retval = doupdate();
-               win->cury = max(0, curscr->cury - win->begy);
-               win->curx = max(0, curscr->curx - win->begx);
+               if (!win->flags & __LEAVEOK) {
+                       win->cury = max(0, curscr->cury - win->begy);
+                       win->curx = max(0, curscr->curx - win->begx);
+               }
        }
        curwin = 0;
        return(retval);



Home | Main Index | Thread Index | Old Index