Make pane-border-format a pane option, GitHub issue 2999.

pull/3012/head
nicm 2021-12-13 09:42:20 +00:00
parent 9c1633a865
commit c6149adf55
2 changed files with 2 additions and 2 deletions

View File

@ -965,7 +965,7 @@ const struct options_table_entry options_table[] = {
{ .name = "pane-border-format",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
.default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] "
"\"#{pane_title}\"",
.text = "Format of text in the pane status lines."

View File

@ -373,7 +373,7 @@ screen_redraw_make_pane_status(struct client *c, struct window_pane *wp,
style_apply(&gc, w->options, "pane-active-border-style", ft);
else
style_apply(&gc, w->options, "pane-border-style", ft);
fmt = options_get_string(w->options, "pane-border-format");
fmt = options_get_string(wp->options, "pane-border-format");
expanded = format_expand_time(ft, fmt);
if (wp->sx < 4)