When rendering windows in choose-mode (via choose-tree and choose-window)
render certain lines in their appropriate alert colour, if set.
---
 trunk/window-choose.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/trunk/window-choose.c b/trunk/window-choose.c
index f385763..96d13f5 100644
--- a/trunk/window-choose.c
+++ b/trunk/window-choose.c
@@ -135,6 +135,7 @@ window_choose_data_create(struct cmd_ctx *ctx)
        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;
@@ -374,6 +375,7 @@ window_choose_write_line(
        screen_write_cursormove(ctx, 0, py);
        if (data->top + py  < ARRAY_LENGTH(&data->list)) {
                item = &ARRAY_ITEM(&data->list, data->top + py);
+               winlink_set_alert_colours(item->wcd->wl, &gc);
                key = window_choose_key_index(data, data->top + py);
                if (key != -1) {
                        screen_write_nputs(ctx, screen_size_x(s) - 1,
@@ -548,6 +550,7 @@ window_choose_add_window(struct window_pane *wp, struct 
cmd_ctx *ctx,
        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);
-- 
1.7.10


------------------------------------------------------------------------------
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-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to