-/* $OpenBSD: colour.c,v 1.24 2021/11/01 07:48:04 nicm Exp $ */
+/* $OpenBSD: colour.c,v 1.25 2022/03/24 12:07:25 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
u_char r, g, b;
if (c == -1)
- return ("invalid");
+ return ("none");
if (c & COLOUR_FLAG_RGB) {
colour_split_rgb(c, &r, &g, &b);
-/* $OpenBSD: options-table.c,v 1.161 2022/03/17 11:35:37 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.162 2022/03/24 12:07:25 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
.minimum = 0,
.maximum = INT_MAX,
.default_num = 500,
+ .unit = "milliseconds",
.text = "Time to wait before assuming a key is Escape."
},
-/* $OpenBSD: window-customize.c,v 1.13 2021/11/29 11:01:51 nicm Exp $ */
+/* $OpenBSD: window-customize.c,v 1.14 2022/03/24 12:07:25 nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
}
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;