Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses curses: Fix inverted logic when drawing LR cor...



details:   https://anonhg.NetBSD.org/src/rev/1860c35d8334
branches:  trunk
changeset: 446304:1860c35d8334
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Nov 30 04:38:14 2018 +0000

description:
curses: Fix inverted logic when drawing LR corner with auto margins

Thanks to M. Levinson.

diffstat:

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

diffs (30 lines):

diff -r 9cd4faab0e67 -r 1860c35d8334 lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Fri Nov 30 00:53:41 2018 +0000
+++ b/lib/libcurses/refresh.c   Fri Nov 30 04:38:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.101 2018/11/18 02:46:24 uwe Exp $        */
+/*     $NetBSD: refresh.c,v 1.102 2018/11/30 04:38:14 roy Exp $        */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c  8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.101 2018/11/18 02:46:24 uwe Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.102 2018/11/30 04:38:14 roy Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -1033,9 +1033,9 @@
 
        /* Disable auto margins temporarily. */
        if (enter_am_mode && exit_am_mode) {
-               tputs(enter_am_mode, 0, __cputchar);
+               tputs(exit_am_mode, 0, __cputchar);
                error = putch(nsp, csp, wy, wx);
-               tputs(exit_am_mode, 0, __cputchar);
+               tputs(enter_am_mode, 0, __cputchar);
                return error;
        }
 



Home | Main Index | Thread Index | Old Index