summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2023-08-15 07:01:48 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2023-08-15 07:01:48 +0000
commit37ad523ca35c5f68438e38f7f0cc34cd9d576a94 (patch)
tree867e49f5d5624b6829f14696700246655e22e6a4 /usr.bin/tmux/options-table.c
parentc3afb56359011bcb089e92c3ecf863467c31e5fe (diff)
Add an option menu-selected-style to configure the currently selected
menu item, from Alexis Hildebrandt.
Diffstat (limited to 'usr.bin/tmux/options-table.c')
-rw-r--r--usr.bin/tmux/options-table.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c
index 211257f218a..9b4638984f4 100644
--- a/usr.bin/tmux/options-table.c
+++ b/usr.bin/tmux/options-table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options-table.c,v 1.166 2023/08/08 08:08:47 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.167 2023/08/15 07:01:47 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -336,6 +336,15 @@ const struct options_table_entry options_table[] = {
.text = "Default style of menu."
},
+ { .name = "menu-selected-style",
+ .type = OPTIONS_TABLE_STRING,
+ .scope = OPTIONS_TABLE_WINDOW,
+ .flags = OPTIONS_TABLE_IS_STYLE,
+ .default_str = "bg=yellow,fg=black",
+ .separator = ",",
+ .text = "Default style of selected menu item."
+ },
+
{ .name = "menu-border-style",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
@@ -962,8 +971,8 @@ const struct options_table_entry options_table[] = {
{ .name = "mode-style",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_WINDOW,
- .default_str = "bg=yellow,fg=black",
.flags = OPTIONS_TABLE_IS_STYLE,
+ .default_str = "bg=yellow,fg=black",
.separator = ",",
.text = "Style of indicators and highlighting in modes."
},