summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2019-06-20 11:59:59 +0000
committernicm <nicm>2019-06-20 11:59:59 +0000
commit5f92f92908b81b4ec66682adb84b9ffc8d83c2f7 (patch)
tree1efeb76d391658d00d7b6028ae02b2cf49a5cac6 /tmux.c
parentc1ede507d954b98a73c40665e7aee6fe5f0c5bce (diff)
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 'tmux.c')
-rw-r--r--tmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index ac8a131a..c3fe3ee6 100644
--- a/tmux.c
+++ b/tmux.c
@@ -321,11 +321,11 @@ main(int argc, char **argv)
global_s_options = options_create(NULL);
global_w_options = options_create(NULL);
for (oe = options_table; oe->name != NULL; oe++) {
- if (oe->scope == OPTIONS_TABLE_SERVER)
+ if (oe->scope & OPTIONS_TABLE_SERVER)
options_default(global_options, oe);
- if (oe->scope == OPTIONS_TABLE_SESSION)
+ if (oe->scope & OPTIONS_TABLE_SESSION)
options_default(global_s_options, oe);
- if (oe->scope == OPTIONS_TABLE_WINDOW)
+ if (oe->scope & OPTIONS_TABLE_WINDOW)
options_default(global_w_options, oe);
}