summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-31 22:30:15 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-31 22:30:15 +0000
commited3535db8a5dac03cab96f7fc220b99095423fd0 (patch)
treeedbf02a4b364a56d0d58b1665fdca029acb1bd61 /status.c
parent2fe369831ce005827ff10dafe80532ff18c57641 (diff)
Sync OpenBSD patchset 302:
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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/status.c b/status.c
index 0a792f39..aa5fdc1f 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.112 2009-08-20 11:51:20 tcunha Exp $ */
+/* $Id: status.c,v 1.113 2009-08-31 22:30:15 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);