Make synchronize-panes a pane option and add -U flag to set-option to

unset an option on all panes. GitHub issue 2491 from Rostislav Nesin.
This commit is contained in:
nicm
2020-12-15 08:31:50 +00:00
parent f6095cad99
commit 8bd29a30bf
5 changed files with 49 additions and 24 deletions

View File

@ -3085,7 +3085,7 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
format_add_cb(ft, "pane_in_mode", format_cb_pane_in_mode);
format_add(ft, "pane_synchronized", "%d",
!!options_get_number(w->options, "synchronize-panes"));
!!options_get_number(wp->options, "synchronize-panes"));
if (wp->searchstr != NULL)
format_add(ft, "pane_search_string", "%s", wp->searchstr);