diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-09-10 15:38:02 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-09-10 15:38:02 +0100 |
commit | abcbfcb0e801598a868ca6eee0127ebf4bf4ace8 (patch) | |
tree | 814e371bcd15a6e3c5ba3757173196b646fe0306 /cmd-select-pane.c | |
parent | 6e2b3f435ae49e4d372476c4a8a2ef64d497c87d (diff) | |
parent | 7f83b53027c98589b516c4137a2fbc48a70e230b (diff) | |
download | rtmux-abcbfcb0e801598a868ca6eee0127ebf4bf4ace8.tar.gz rtmux-abcbfcb0e801598a868ca6eee0127ebf4bf4ace8.tar.bz2 rtmux-abcbfcb0e801598a868ca6eee0127ebf4bf4ace8.zip |
Merge branch 'master' into 2.6-rc
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c index 21bda8e4..a7fb4428 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -30,8 +30,8 @@ const struct cmd_entry cmd_select_pane_entry = { .name = "select-pane", .alias = "selectp", - .args = { "DdegLlMmP:Rt:U", 0, 0 }, - .usage = "[-DdegLlMmRU] [-P style] " CMD_TARGET_PANE_USAGE, + .args = { "DdegLlMmP:RT:t:U", 0, 0 }, + .usage = "[-DdegLlMmRU] [-P style] [-T title] " CMD_TARGET_PANE_USAGE, .target = { 't', CMD_FIND_PANE, 0 }, @@ -147,6 +147,11 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_NORMAL); } + if (args_has(self->args, 'T')) { + screen_set_title(&wp->base, args_get(self->args, 'T')); + server_status_window(wp->window); + } + if (wp == w->active) return (CMD_RETURN_NORMAL); server_unzoom_window(wp->window); |