summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-09-24 09:58:58 +0000
committernicm <nicm@openbsd.org>2019-09-24 09:58:58 +0000
commit4fafc9b7377c4c136404cd978e2cad75eee210d7 (patch)
tree2123ba17e61c9e93e6cc2ee6ad3b3edfbd8d1413 /usr.bin/tmux/cmd-select-pane.c
parentImplement DVFS support. (diff)
downloadwireguard-openbsd-4fafc9b7377c4c136404cd978e2cad75eee210d7.tar.xz
wireguard-openbsd-4fafc9b7377c4c136404cd978e2cad75eee210d7.zip
Make select-pane -P set window-active-style also to match previous
behaviour, reported by Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux/cmd-select-pane.c')
-rw-r--r--usr.bin/tmux/cmd-select-pane.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index c643c934ff7..b8b474b5698 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.52 2019/08/14 09:58:31 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.53 2019/09/24 09:58:58 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -154,6 +154,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')) {