aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2019-04-23 20:36:55 +0000
committernicm <nicm>2019-04-23 20:36:55 +0000
commit772b3b7a06ceba64933cb3a9dfff61e56c229a74 (patch)
treeb39ae35756cf031dd8e7390f7f0882eb96a78e5a /tty-term.c
parent564e44adc6816282cd40d59d1bc642937e53dc54 (diff)
downloadrtmux-772b3b7a06ceba64933cb3a9dfff61e56c229a74.tar.gz
rtmux-772b3b7a06ceba64933cb3a9dfff61e56c229a74.tar.bz2
rtmux-772b3b7a06ceba64933cb3a9dfff61e56c229a74.zip
Indicate an array option with a flag rather than a special type so that
in future will not have to be strings.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tty-term.c b/tty-term.c
index 9e0bb63d..47da3905 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -417,6 +417,7 @@ tty_term_find(char *name, int fd, char **cause)
struct tty_code *code;
struct options_entry *o;
struct options_array_item *a;
+ union options_value *ov;
u_int i;
int n, error;
const char *s, *acs;
@@ -494,9 +495,9 @@ tty_term_find(char *name, int fd, char **cause)
o = options_get_only(global_options, "terminal-overrides");
a = options_array_first(o);
while (a != NULL) {
- s = options_array_item_value(a);
- if (s != NULL)
- tty_term_override(term, s);
+ ov = options_array_item_value(a);
+ if (ov != NULL)
+ tty_term_override(term, ov->string);
a = options_array_next(a);
}