diff options
author | nicm <nicm> | 2019-06-20 11:59:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-20 11:59:59 +0000 |
commit | 5f92f92908b81b4ec66682adb84b9ffc8d83c2f7 (patch) | |
tree | 1efeb76d391658d00d7b6028ae02b2cf49a5cac6 /cmd-join-pane.c | |
parent | c1ede507d954b98a73c40665e7aee6fe5f0c5bce (diff) | |
download | rtmux-5f92f92908b81b4ec66682adb84b9ffc8d83c2f7.tar.gz rtmux-5f92f92908b81b4ec66682adb84b9ffc8d83c2f7.tar.bz2 rtmux-5f92f92908b81b4ec66682adb84b9ffc8d83c2f7.zip |
Add a per-pane option set. Pane options inherit from window options (so
there should be no change to existing behaviour) and are set and shown
with set-option -p and show-options -p.
Change remain-on-exit and window-style/window-active-style to be pane
options (some others will be changed later).
This makes select-pane -P and -g unnecessary so no longer document them
(they still work) and no longer document set-window-option and
show-window-options in favour of set-option -w and show-options -w.
Diffstat (limited to 'cmd-join-pane.c')
-rw-r--r-- | cmd-join-pane.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-join-pane.c b/cmd-join-pane.c index ab245302..4a0c7339 100644 --- a/cmd-join-pane.c +++ b/cmd-join-pane.c @@ -140,6 +140,8 @@ cmd_join_pane_exec(struct cmd *self, struct cmdq_item *item) TAILQ_REMOVE(&src_w->panes, src_wp, entry); src_wp->window = dst_w; + options_set_parent(src_wp->options, dst_w->options); + src_wp->flags |= PANE_STYLECHANGED; TAILQ_INSERT_AFTER(&dst_w->panes, dst_wp, src_wp, entry); layout_assign_pane(lc, src_wp); |