summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-09-24 09:58:59 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-09-24 09:58:59 +0000
commit9d5dbbefc7b434f03a24ac087d30de401c908325 (patch)
treecaac56a665340a86fec62f81462993faf6bae446 /usr.bin/tmux
parent463545311d6efc12283528be0f211a4b59892187 (diff)
Make select-pane -P set window-active-style also to match previous
behaviour, reported by Thomas Sattler.
Diffstat (limited to 'usr.bin/tmux')
-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')) {