Changeset f63a681
- Timestamp:
- Nov 16, 2009, 8:53:43 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1b9a163
- Parents:
- 3e8625f
- git-author:
- David Benjamin <davidben@mit.edu> (11/10/09 23:35:53)
- git-committer:
- David Benjamin <davidben@mit.edu> (11/16/09 20:53:43)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r23fddad rf63a681 3559 3559 void _owl_function_mark_message(const owl_message *m) 3560 3560 { 3561 if (m) 3561 if (m) { 3562 3562 owl_global_set_markedmsgid(&g, owl_message_get_id(m)); 3563 owl_mainwin_redisplay(owl_global_get_mainwin(&g)); 3564 } 3563 3565 } 3564 3566 -
mainwin.c
r9bda818 rf63a681 12 12 int i, p, q, lines, isfull, viewsize; 13 13 int x, y, savey, recwinlines, start; 14 int topmsg, curmsg, fgcolor, bgcolor;14 int topmsg, curmsg, markedmsgid, fgcolor, bgcolor; 15 15 WINDOW *recwin; 16 16 const owl_view *v; … … 18 18 const owl_filter *f; 19 19 20 recwin=owl_global_get_curs_recwin(&g); 21 topmsg=owl_global_get_topmsg(&g); 22 curmsg=owl_global_get_curmsg(&g); 23 v=owl_global_get_current_view(&g); 20 recwin = owl_global_get_curs_recwin(&g); 21 topmsg = owl_global_get_topmsg(&g); 22 curmsg = owl_global_get_curmsg(&g); 23 markedmsgid = owl_global_get_markedmsgid(&g); 24 v = owl_global_get_current_view(&g); 24 25 owl_fmtext_reset_colorpairs(); 25 26 … … 119 120 waddstr(recwin, "-"); 120 121 } 121 if (!owl_message_is_delete(m)) { 122 if (owl_message_is_delete(m)) { 123 waddstr(recwin, "D"); 124 } else if (markedmsgid == owl_message_get_id(m)) { 125 waddstr(recwin, "*"); 126 } else { 122 127 waddstr(recwin, ">"); 123 } else {124 waddstr(recwin, "D");125 128 } 126 129 wmove(recwin, y, x); … … 129 132 wmove(recwin, savey, 0); 130 133 waddstr(recwin, " D"); 134 wmove(recwin, y, x); 135 } else if (markedmsgid == owl_message_get_id(m)) { 136 wmove(recwin, savey, 0); 137 waddstr(recwin, " *"); 131 138 wmove(recwin, y, x); 132 139 }
Note: See TracChangeset
for help on using the changeset viewer.