Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-06-26 13:15:06 +01:00
3 changed files with 18 additions and 1 deletions

View File

@@ -839,7 +839,7 @@ mode_tree_draw(struct mode_tree_data *mtd)
memcpy(&gc0, &grid_default_cell, sizeof gc0);
memcpy(&gc, &grid_default_cell, sizeof gc);
style_apply(&gc, oo, "mode-style", NULL);
style_apply(&gc, oo, "tree-mode-selection-style", NULL);
memcpy(&box_gc, &grid_default_cell, sizeof box_gc);
style_apply(&box_gc, oo, "tree-mode-border-style", NULL);

View File

@@ -1718,6 +1718,15 @@ const struct options_table_entry options_table[] = {
.text = "Style of preview indicator in tree mode."
},
{ .name = "tree-mode-selection-style",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
.default_str = "#{E:mode-style}",
.flags = OPTIONS_TABLE_IS_STYLE,
.separator = ",",
.text = "Style of the selected line in tree mode."
},
{ .name = "window-active-style",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,

8
tmux.1
View File

@@ -5915,6 +5915,14 @@ see the
.Sx STYLES
section.
.Pp
.It Ic tree\-mode\-selection\-style Ar style
Set the style of the selected line in tree mode.
For how to specify
.Ar style ,
see the
.Sx STYLES
section.
.Pp
.It Ic window\-status\-activity\-style Ar style
Set status line style for windows with an activity alert.
For how to specify