aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2022-03-24 12:07:25 +0000
committernicm <nicm>2022-03-24 12:07:25 +0000
commit938130bc6925808681cbc003a392ccce2a4455c1 (patch)
tree218ba8620491f3a3565009b98f6f08c21218df39
parent792d13af49f2550a9a8d11b0099528628957a1a0 (diff)
downloadrtmux-938130bc6925808681cbc003a392ccce2a4455c1.tar.gz
rtmux-938130bc6925808681cbc003a392ccce2a4455c1.tar.bz2
rtmux-938130bc6925808681cbc003a392ccce2a4455c1.zip
Add unit (milliseconds) to escape-time, show unset colours as "none"
rather than "invalid" and don't show the same text twice for user options in customize mode.
-rw-r--r--colour.c2
-rw-r--r--options-table.c1
-rw-r--r--window-customize.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/colour.c b/colour.c
index 6ede25da..a282d182 100644
--- a/colour.c
+++ b/colour.c
@@ -128,7 +128,7 @@ colour_tostring(int c)
u_char r, g, b;
if (c == -1)
- return ("invalid");
+ return ("none");
if (c & COLOUR_FLAG_RGB) {
colour_split_rgb(c, &r, &g, &b);
diff --git a/options-table.c b/options-table.c
index b0870118..4e68af00 100644
--- a/options-table.c
+++ b/options-table.c
@@ -278,6 +278,7 @@ const struct options_table_entry options_table[] = {
.minimum = 0,
.maximum = INT_MAX,
.default_num = 500,
+ .unit = "milliseconds",
.text = "Time to wait before assuming a key is Escape."
},
diff --git a/window-customize.c b/window-customize.c
index 98387e50..4a16e90c 100644
--- a/window-customize.c
+++ b/window-customize.c
@@ -680,9 +680,7 @@ window_customize_draw_option(struct window_customize_modedata *data,
}
ft = format_create_from_state(NULL, NULL, &fs);
- if (oe == NULL)
- text = "This is a user option.";
- else if (oe->text == NULL)
+ if (oe == NULL || oe->text == NULL)
text = "This option doesn't have a description.";
else
text = oe->text;