1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-01 13:18:49 +00:00

Make select-pane -P set window-active-style also to match previous

behaviour, reported by Thomas Sattler.
This commit is contained in:
nicm 2019-09-24 09:58:58 +00:00
parent 77deef733b
commit 232050830b

View File

@ -154,6 +154,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
cmdq_error(item, "bad style: %s", style); cmdq_error(item, "bad style: %s", style);
return (CMD_RETURN_ERROR); return (CMD_RETURN_ERROR);
} }
options_set_style(wp->options, "window-active-style", 0,
style);
wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED); wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED);
} }
if (args_has(self->args, 'g')) { if (args_has(self->args, 'g')) {