mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-24 15:48:58 +01:00
Sync OpenBSD patchset 744:
Show which pane is active in the list-panes output, suggested by Dominik Honnef.
This commit is contained in:
parent
4387db506f
commit
5e9429e2d6
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-list-panes.c,v 1.4 2009-12-04 22:14:47 tcunha Exp $ */
|
/* $Id: cmd-list-panes.c,v 1.5 2010-08-11 22:14:23 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -65,8 +65,9 @@ cmd_list_panes_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
}
|
}
|
||||||
size += gd->hsize * sizeof *gd->linedata;
|
size += gd->hsize * sizeof *gd->linedata;
|
||||||
|
|
||||||
ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]",
|
ctx->print(ctx, "%u: [%ux%u] [history %u/%u, %llu bytes]%s",
|
||||||
n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size);
|
n, wp->sx, wp->sy, gd->hsize, gd->hlimit, size,
|
||||||
|
wp == wp->window->active ? " (active)" : "");
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user