Changeset f63a681


Ignore:
Timestamp:
Nov 16, 2009, 8:53:43 PM (12 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, 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)
Message:
Mark the current mark with an asterisk

Has priority over the arrow, but not the deletion flag.

Signed-off-by: David Benjamin <davidben@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r23fddad rf63a681  
    35593559void _owl_function_mark_message(const owl_message *m)
    35603560{
    3561   if (m)
     3561  if (m) {
    35623562    owl_global_set_markedmsgid(&g, owl_message_get_id(m));
     3563    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     3564  }
    35633565}
    35643566
  • mainwin.c

    r9bda818 rf63a681  
    1212  int i, p, q, lines, isfull, viewsize;
    1313  int x, y, savey, recwinlines, start;
    14   int topmsg, curmsg, fgcolor, bgcolor;
     14  int topmsg, curmsg, markedmsgid, fgcolor, bgcolor;
    1515  WINDOW *recwin;
    1616  const owl_view *v;
     
    1818  const owl_filter *f;
    1919
    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);
    2425  owl_fmtext_reset_colorpairs();
    2526
     
    119120          waddstr(recwin, "-");
    120121        }
    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 {
    122127          waddstr(recwin, ">");
    123         } else {
    124           waddstr(recwin, "D");
    125128        }
    126129        wmove(recwin, y, x);
     
    129132        wmove(recwin, savey, 0);
    130133        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, " *");
    131138        wmove(recwin, y, x);
    132139      }
Note: See TracChangeset for help on using the changeset viewer.