summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authornicm <nicm>2021-10-14 13:19:01 +0000
committernicm <nicm>2021-10-14 13:19:01 +0000
commitadd20637f256c0118d3c687d5d1446612d14389a (patch)
treecf546997fdd9cb96e0ace7dd385eb127d67aa448 /options-table.c
parentd0ab1a837a0ab3e26fe7195f14672f6feb43c4c4 (diff)
Add popup-border-lines option to set popup line style, from Alexis
Hildebrandt, GitHub issue 2930.
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/options-table.c b/options-table.c
index e728dbe9..6c57e3ff 100644
--- a/options-table.c
+++ b/options-table.c
@@ -60,9 +60,12 @@ static const char *options_table_visual_bell_list[] = {
static const char *options_table_pane_status_list[] = {
"off", "top", "bottom", NULL
};
-static const char *options_table_pane_lines_list[] = {
+static const char *options_table_pane_border_lines_list[] = {
"single", "double", "heavy", "simple", "number", NULL
};
+static const char *options_table_popup_border_lines_list[] = {
+ "single", "double", "heavy", "simple", "rounded", "padded", "none", NULL
+};
static const char *options_table_set_clipboard_list[] = {
"off", "external", "on", NULL
};
@@ -951,7 +954,7 @@ const struct options_table_entry options_table[] = {
{ .name = "pane-border-lines",
.type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_WINDOW,
- .choices = options_table_pane_lines_list,
+ .choices = options_table_pane_border_lines_list,
.default_num = PANE_LINES_SINGLE,
.text = "Type of characters used to draw pane border lines. Some of "
"these are only supported on terminals with UTF-8 support."
@@ -1000,6 +1003,15 @@ const struct options_table_entry options_table[] = {
.text = "Default style of popup borders."
},
+ { .name = "popup-border-lines",
+ .type = OPTIONS_TABLE_CHOICE,
+ .scope = OPTIONS_TABLE_WINDOW,
+ .choices = options_table_popup_border_lines_list,
+ .default_num = BOX_LINES_SINGLE,
+ .text = "Type of characters used to draw popup border lines. Some of "
+ "these are only supported on terminals with UTF-8 support."
+ },
+
{ .name = "remain-on-exit",
.type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,