aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-31 20:46:19 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-31 20:46:19 +0000
commit04319964b95304138dbe5cbce0b97222769d0c17 (patch)
tree3d067da0a55da208bbf9dd18d1711d5b165ffcfc /status.c
parent8102ec3be55e9800837eeb2f1f9135a433452794 (diff)
downloadrtmux-04319964b95304138dbe5cbce0b97222769d0c17.tar.gz
rtmux-04319964b95304138dbe5cbce0b97222769d0c17.tar.bz2
rtmux-04319964b95304138dbe5cbce0b97222769d0c17.zip
Add a new display-panes command, with two options (display-panes-colour and
display-panes-time), which displays a visual indication of the number of each pane.
Diffstat (limited to 'status.c')
-rw-r--r--status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/status.c b/status.c
index b4f23702..51c9c64f 100644
--- a/status.c
+++ b/status.c
@@ -541,13 +541,14 @@ status_message_set(struct client *c, const char *fmt, ...)
status_prompt_clear(c);
status_message_clear(c);
+ va_start(ap, fmt);
+ xvasprintf(&c->message_string, fmt, ap);
+ va_end(ap);
+
delay = options_get_number(&c->session->options, "display-time");
tv.tv_sec = delay / 1000;
tv.tv_usec = (delay % 1000) * 1000L;
- va_start(ap, fmt);
- xvasprintf(&c->message_string, fmt, ap);
- va_end(ap);
if (gettimeofday(&c->message_timer, NULL) != 0)
fatal("gettimeofday");
timeradd(&c->message_timer, &tv, &c->message_timer);