Revision: 2863
          http://tmux.svn.sourceforge.net/tmux/?rev=2863&view=rev
Author:   tcunha
Date:     2012-08-31 09:20:47 +0000 (Fri, 31 Aug 2012)
Log Message:
-----------
Sync OpenBSD patchset 1164:

Boldify windows with alerts in choose-* list.

Modified Paths:
--------------
    trunk/window-choose.c

Modified: trunk/window-choose.c
===================================================================
--- trunk/window-choose.c       2012-08-31 09:20:09 UTC (rev 2862)
+++ trunk/window-choose.c       2012-08-31 09:20:47 UTC (rev 2863)
@@ -152,6 +152,7 @@
        wcd->ft = format_create();
        wcd->ft_template = NULL;
        wcd->command = NULL;
+       wcd->wl = NULL;
        wcd->client = ctx->curclient;
        wcd->session = ctx->curclient->session;
        wcd->idx = -1;
@@ -444,6 +445,9 @@
        screen_write_cursormove(ctx, 0, py);
        if (data->top + py  < ARRAY_LENGTH(&data->list)) {
                item = &ARRAY_ITEM(&data->list, data->top + py);
+               if (item->wcd->wl != NULL &&
+                   item->wcd->wl->flags & WINLINK_ALERTFLAGS)
+                       gc.attr |= GRID_ATTR_BRIGHT;
                screen_write_nputs(ctx, screen_size_x(s) - 1,
                    &gc, utf8flag, "(%*d) %s", data->width,
                    item->pos, item->name);
@@ -604,6 +608,7 @@
        free(action_data);
 
        wcd->idx = wl->idx;
+       wcd->wl = wl;
        wcd->ft_template = xstrdup(template);
        format_add(wcd->ft, "line", "%u", idx);
        format_session(wcd->ft, s);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to