summaryrefslogtreecommitdiffstats
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2019-09-24 09:58:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-09-24 12:20:25 +0100
commit6f8f4bb2063ccc72ed665a13215accc72a75d55f (patch)
treec81d0031632c3e4b4dd3ae4e2dd6687ba1aecf21 /cmd-select-pane.c
parentc739772436aef2aeb6f008def73584d348d012e7 (diff)
Make select-pane -P set window-active-style also to match previous
behaviour, reported by Thomas Sattler.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index 52c58dbc..b46f7cd9 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -151,6 +151,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
cmdq_error(item, "bad style: %s", style);
return (CMD_RETURN_ERROR);
}
+ options_set_style(wp->options, "window-active-style", 0,
+ style);
wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);
}
if (args_has(self->args, 'g')) {