diff options
author | 1999-03-15 19:12:19 +0000 | |
---|---|---|
committer | 1999-03-15 19:12:19 +0000 | |
commit | 6dfa96fc5df5bbdeae7620249cdda1e18dca48b7 (patch) | |
tree | 6e4a06f09be440f9e63b9935cdfcfff07fb8487c /lib/libcurses/base/lib_color.c | |
parent | ncurses-4.2-990314 (diff) | |
download | wireguard-openbsd-6dfa96fc5df5bbdeae7620249cdda1e18dca48b7.tar.xz wireguard-openbsd-6dfa96fc5df5bbdeae7620249cdda1e18dca48b7.zip |
ncurses-4.2-990314
Diffstat (limited to 'lib/libcurses/base/lib_color.c')
-rw-r--r-- | lib/libcurses/base/lib_color.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libcurses/base/lib_color.c b/lib/libcurses/base/lib_color.c index 8ed06319de7..dceb1e8f215 100644 --- a/lib/libcurses/base/lib_color.c +++ b/lib/libcurses/base/lib_color.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_color.c,v 1.2 1999/03/02 06:23:27 millert Exp $ */ +/* $OpenBSD: lib_color.c,v 1.3 1999/03/15 19:12:22 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -43,7 +43,7 @@ #include <term.h> -MODULE_ID("$From: lib_color.c,v 1.34 1999/02/27 19:54:51 tom Exp $") +MODULE_ID("$From: lib_color.c,v 1.35 1999/03/15 01:45:14 Alexander.V.Lukyanov Exp $") /* * These should be screen structure members. They need to be globals for @@ -260,7 +260,9 @@ int init_pair(short pair, short f, short b) bool changed = FALSE; for (x = 0; x <= curscr->_maxx; x++) { if ((ptr->text[x] & A_COLOR) == z) { - ptr->text[x] &= ~A_COLOR; + /* Set the old cell to zero to ensure it will be + updated on the next doupdate() */ + ptr->text[x] = 0; CHANGED_CELL(ptr,x); changed = TRUE; } |