- Timestamp:
- Jan 20, 2007, 9:49:55 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 575877f
- Parents:
- 212764e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mainwin.c
r37eab7f r8fa9562 14 14 int i, p, q, lines, isfull, viewsize; 15 15 int x, y, savey, recwinlines, start; 16 int topmsg, curmsg, color;16 int topmsg, curmsg, fgcolor, bgcolor; 17 17 WINDOW *recwin; 18 18 owl_view *v; … … 24 24 curmsg=owl_global_get_curmsg(&g); 25 25 v=owl_global_get_current_view(&g); 26 owl_fmtext_reset_colorpairs(); 26 27 27 28 if (v==NULL) { … … 72 73 73 74 /* if we match filters set the color */ 74 color=OWL_COLOR_DEFAULT; 75 fgcolor=OWL_COLOR_DEFAULT; 76 bgcolor=OWL_COLOR_DEFAULT; 75 77 filtlist=owl_global_get_filterlist(&g); 76 78 q=owl_list_get_size(filtlist); … … 78 80 f=owl_list_get_element(filtlist, p); 79 81 if (owl_filter_message_match(f, m)) { 80 if (owl_filter_get_color(f)!=OWL_COLOR_DEFAULT) color=owl_filter_get_color(f); 82 if (owl_filter_get_fgcolor(f)!=OWL_COLOR_DEFAULT) fgcolor=owl_filter_get_fgcolor(f); 83 if (owl_filter_get_bgcolor(f)!=OWL_COLOR_DEFAULT) bgcolor=owl_filter_get_bgcolor(f); 81 84 } 82 85 } … … 92 95 owl_global_get_rightshift(&g), 93 96 owl_global_get_cols(&g)+owl_global_get_rightshift(&g)-1, 94 color);97 fgcolor, bgcolor); 95 98 } else { 96 99 /* otherwise print the whole thing */ … … 100 103 owl_global_get_rightshift(&g), 101 104 owl_global_get_cols(&g)+owl_global_get_rightshift(&g)-1, 102 color);105 fgcolor, bgcolor); 103 106 } 104 107
Note: See TracChangeset
for help on using the changeset viewer.