mirror of
https://github.com/tmux/tmux.git
synced 2026-04-16 12:06:32 +00:00
Merge branch 'obsd-master'
This commit is contained in:
22
window.c
22
window.c
@@ -889,9 +889,8 @@ window_printable_flags(struct winlink *wl, int escape)
|
||||
{
|
||||
struct session *s = wl->session;
|
||||
static char flags[32];
|
||||
int pos;
|
||||
u_int pos = 0;
|
||||
|
||||
pos = 0;
|
||||
if (wl->flags & WINLINK_ACTIVITY) {
|
||||
flags[pos++] = '#';
|
||||
if (escape)
|
||||
@@ -913,6 +912,25 @@ window_printable_flags(struct winlink *wl, int escape)
|
||||
return (flags);
|
||||
}
|
||||
|
||||
const char *
|
||||
window_pane_printable_flags(struct window_pane *wp)
|
||||
{
|
||||
struct window *w = wp->window;
|
||||
static char flags[32];
|
||||
u_int pos = 0;
|
||||
|
||||
if (wp == w->active)
|
||||
flags[pos++] = '*';
|
||||
if (wp == TAILQ_FIRST(&w->last_panes))
|
||||
flags[pos++] = '-';
|
||||
if (wp->flags & PANE_ZOOMED)
|
||||
flags[pos++] = 'Z';
|
||||
if (wp->flags & PANE_FLOATING)
|
||||
flags[pos++] = 'F';
|
||||
flags[pos] = '\0';
|
||||
return (flags);
|
||||
}
|
||||
|
||||
struct window_pane *
|
||||
window_pane_find_by_id_str(const char *s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user