Changeset 3377:ec04b0df9dec for color.c
Legend:
- Unmodified
- Added
- Removed
-
color.c
r3173 r3377 393 393 if( 394 394 #ifdef HAVE_COLOR 395 (parse_uncolor && !option(OPTNOCURSES) && !has_colors()) 395 /* we're running without curses */ 396 option (OPTNOCURSES) 397 || /* we're parsing an uncolor command, and have no colors */ 398 (parse_uncolor && !has_colors()) 399 /* we're parsing an unmono command, and have colors */ 396 400 || (!parse_uncolor && has_colors()) 397 401 #else 402 /* We don't even have colors compiled in */ 398 403 parse_uncolor 399 404 #endif 400 405 ) 401 406 { 407 /* just eat the command, but don't do anything real about it */ 402 408 do 403 409 mutt_extract_token (buf, s, 0); … … 708 714 #ifdef HAVE_COLOR 709 715 # ifdef HAVE_USE_DEFAULT_COLORS 710 if ( has_colors()716 if (!option (OPTNOCURSES) && has_colors() 711 717 /* delay use_default_colors() until needed, since it initializes things */ 712 718 && (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT) … … 757 763 #ifdef HAVE_COLOR 758 764 # ifdef HAVE_BKGDSET 759 if (object == MT_COLOR_NORMAL && has_colors())765 if (object == MT_COLOR_NORMAL && !option (OPTNOCURSES) && has_colors()) 760 766 BKGDSET (MT_COLOR_NORMAL); 761 767 # endif
