diff options
author | nicm <nicm> | 2019-04-23 20:36:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-04-23 20:36:55 +0000 |
commit | 772b3b7a06ceba64933cb3a9dfff61e56c229a74 (patch) | |
tree | b39ae35756cf031dd8e7390f7f0882eb96a78e5a /status.c | |
parent | 564e44adc6816282cd40d59d1bc642937e53dc54 (diff) | |
download | rtmux-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 'status.c')
-rw-r--r-- | status.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -323,8 +323,8 @@ status_redraw(struct client *c) u_int lines, i, width = c->tty.sx; int flags, force = 0, changed = 0; struct options_entry *o; + union options_value *ov; struct format_tree *ft; - const char *fmt; char *expanded; log_debug("%s enter", __func__); @@ -370,14 +370,14 @@ status_redraw(struct client *c) for (i = 0; i < lines; i++) { screen_write_cursormove(&ctx, 0, i, 0); - fmt = options_array_get(o, i); - if (fmt == NULL) { + ov = options_array_get(o, i); + if (ov == NULL) { screen_write_clearline(&ctx, gc.bg); continue; } sle = &sl->entries[i]; - expanded = format_expand_time(ft, fmt); + expanded = format_expand_time(ft, ov->string); if (!force && sle->expanded != NULL && strcmp(expanded, sle->expanded) == 0) { |