Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-04-04 20:01:11 +01:00
9 changed files with 108 additions and 17 deletions

View File

@@ -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)
{