mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add a format window_linked which is 1 if a window has been linked
multiple times, also remove the default space in window_flags and use a conditional to add it in window-status-format (this means additional flags can be added in the option without extra spaces). From Thomas Adam with tweaks by me.
This commit is contained in:
@ -737,7 +737,7 @@ const struct options_table_entry window_options_table[] = {
|
||||
|
||||
{ .name = "window-status-current-format",
|
||||
.type = OPTIONS_TABLE_STRING,
|
||||
.default_str = "#I:#W#F"
|
||||
.default_str = "#I:#W#{?window_flags,#{window_flags}, }"
|
||||
},
|
||||
|
||||
{ .name = "window-status-current-style",
|
||||
@ -753,7 +753,7 @@ const struct options_table_entry window_options_table[] = {
|
||||
|
||||
{ .name = "window-status-format",
|
||||
.type = OPTIONS_TABLE_STRING,
|
||||
.default_str = "#I:#W#F"
|
||||
.default_str = "#I:#W#{?window_flags,#{window_flags}, }"
|
||||
},
|
||||
|
||||
{ .name = "window-status-last-attr",
|
||||
|
Reference in New Issue
Block a user