Ticket #229: ncurses_default_color_fix.patch
File ncurses_default_color_fix.patch, 498 bytes (added by Robert, 15 years ago) |
---|
-
src/color.c
a b 301 301 302 302 if (use_colors){ 303 303 start_color (); 304 use_default_colors (); 304 305 configure_colors (); 305 306 306 307 #ifndef HAVE_SLANG … … 410 411 void 411 412 mc_init_pair (int index, CTYPE foreground, CTYPE background) 412 413 { 413 init_pair (index, foreground, background);414 init_pair (index, foreground, (background==0?-1:background)); 414 415 if (index > max_index) 415 416 max_index = index; 416 417 }