aboutsummaryrefslogtreecommitdiff
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-09-02 20:01:18 +0100
committerThomas Adam <thomas@xteddy.org>2017-09-02 20:01:18 +0100
commitd019821281c8a14abfa635cf685e216c69590001 (patch)
treea3263a879a8fde2e240c18e2858ef0c6e9aa5331 /cmd-select-pane.c
parente941e532fac25237a7902ebda7e36a5c86c4e638 (diff)
parentf4848b437f01e92ee5414f9480f67c1026c36f6f (diff)
downloadrtmux-d019821281c8a14abfa635cf685e216c69590001.tar.gz
rtmux-d019821281c8a14abfa635cf685e216c69590001.tar.bz2
rtmux-d019821281c8a14abfa635cf685e216c69590001.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c9
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);