X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fncurses.c;h=c1f700cac8e59d4aef25483a5a72941ea6301bc7;hp=7a025fea39efba6847dc61d158871cebf844fbfb;hb=1bdf9cf11520edfe2b931ead0335e7a1734792a8;hpb=2782cd7cf38dc9cfaa9d90b7e66792dbc7537b08 diff --git a/test/ncurses.c b/test/ncurses.c index 7a025fea..c1f700ca 100644 --- a/test/ncurses.c +++ b/test/ncurses.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,7 +40,7 @@ AUTHOR Author: Eric S. Raymond 1993 Thomas E. Dickey (beginning revision 1.27 in 1996). -$Id: ncurses.c,v 1.336 2009/01/25 00:39:14 tom Exp $ +$Id: ncurses.c,v 1.338 2009/03/28 21:40:51 tom Exp $ ***************************************************************************/ @@ -3284,7 +3284,7 @@ show_upper_widechars(int first, int repeat, int space, attr_t attr, short pair) * the display. */ if (wcwidth(code) == 0) - addch(space | A_REVERSE); + addch(space | (A_REVERSE ^ attr) | COLOR_PAIR(pair)); /* * This could use add_wch(), but is done for comparison with the * normal 'f' test (and to make a test-case for echo_wchar()).