From 04319964b95304138dbe5cbce0b97222769d0c17 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 31 Aug 2009 20:46:19 +0000 Subject: 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. --- status.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'status.c') 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); -- cgit