summaryrefslogtreecommitdiff
path: root/lib/libcurses/tty/lib_vidattr.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-10-22 18:27:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-10-22 18:27:26 +0000
commit4cf4e50d3f2514c7715234cde554811d1510d49b (patch)
treea68fbff86315c8b661436cfcea7521a28fc27266 /lib/libcurses/tty/lib_vidattr.c
parentebaa4a3245dc19de0dd708004824d9ada7c49a44 (diff)
update to ncurses 5.2
Diffstat (limited to 'lib/libcurses/tty/lib_vidattr.c')
-rw-r--r--lib/libcurses/tty/lib_vidattr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/tty/lib_vidattr.c b/lib/libcurses/tty/lib_vidattr.c
index 9f8476c760c..e9639a730c6 100644
--- a/lib/libcurses/tty/lib_vidattr.c
+++ b/lib/libcurses/tty/lib_vidattr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_vidattr.c,v 1.6 2000/10/08 22:47:05 millert Exp $ */
+/* $OpenBSD: lib_vidattr.c,v 1.7 2000/10/22 18:27:24 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
@@ -66,7 +66,7 @@
#include <curses.priv.h>
#include <term.h>
-MODULE_ID("$From: lib_vidattr.c,v 1.32 2000/09/17 00:15:23 tom Exp $")
+MODULE_ID("$From: lib_vidattr.c,v 1.33 2000/10/09 22:45:29 tom Exp $")
#define doPut(mode) TPUTS_TRACE(#mode); tputs(mode, 1, outc)
@@ -140,7 +140,7 @@ vidputs(attr_t newmode, int (*outc) (int))
| ((no_color_video & 192) << 1)
| ((no_color_video & 256) >> 2), 8);
- if (mask & A_REVERSE) {
+ if (mask & A_REVERSE && newmode & A_REVERSE) {
reverse = TRUE;
mask &= ~A_REVERSE;
}