=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.192 retrieving revision 1.193 diff -u -r1.192 -r1.193 --- src/usr.bin/tmux/status.c 2019/03/18 20:53:33 1.192 +++ src/usr.bin/tmux/status.c 2019/04/23 20:36:55 1.193 @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.192 2019/03/18 20:53:33 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.193 2019/04/23 20:36:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -323,8 +323,8 @@ 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 @@ 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) {