Changeset 545:e842decd824f for color.c
Legend:
- Unmodified
- Added
- Removed
-
color.c
r465 r545 429 429 if (do_cache && !option (OPTNOCURSES)) 430 430 { 431 mutt_cache_index_colors (Context);431 int i; 432 432 set_option (OPTFORCEREDRAWINDEX); 433 /* force re-caching of index colors */ 434 for (i = 0; Context && i < Context->msgcount; i++) 435 Context->hdrs[i]->pair = 0; 433 436 } 434 437 return (0); … … 505 508 if (is_index) 506 509 { 510 int i; 511 507 512 strfcpy(buf, tmp->pattern, sizeof(buf)); 508 513 mutt_check_simple (buf, sizeof (buf), NONULL(SimpleSearch)); … … 512 517 return -1; 513 518 } 519 /* force re-caching of index colors */ 520 for (i = 0; Context && i < Context->msgcount; i++) 521 Context->hdrs[i]->pair = 0; 514 522 } 515 523 tmp->pair = attr; … … 697 705 { 698 706 r = add_pattern (&ColorIndexList, buf->data, 1, fg, bg, attr, err, 1); 699 mutt_cache_index_colors(Context);700 707 set_option (OPTFORCEREDRAWINDEX); 701 708 }
