mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Add a function to create window flags rather than doing the same thing
in two places. From Thomas Adam.
This commit is contained in:
17
status.c
17
status.c
@ -393,21 +393,8 @@ status_replace1(struct client *c,struct winlink *wl,
|
||||
ptr = wl->window->name;
|
||||
goto do_replace;
|
||||
case 'F':
|
||||
tmp[0] = ' ';
|
||||
if (wl->flags & WINLINK_CONTENT)
|
||||
tmp[0] = '+';
|
||||
else if (wl->flags & WINLINK_BELL)
|
||||
tmp[0] = '!';
|
||||
else if (wl->flags & WINLINK_ACTIVITY)
|
||||
tmp[0] = '#';
|
||||
else if (wl->flags & WINLINK_SILENCE)
|
||||
tmp[0] = '~';
|
||||
else if (wl == s->curw)
|
||||
tmp[0] = '*';
|
||||
else if (wl == TAILQ_FIRST(&s->lastw))
|
||||
tmp[0] = '-';
|
||||
tmp[1] = '\0';
|
||||
ptr = tmp;
|
||||
ptr = window_printable_flags(s, wl);
|
||||
freeptr = ptr;
|
||||
goto do_replace;
|
||||
case '[':
|
||||
/*
|
||||
|
Reference in New Issue
Block a user