aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-02-18 22:36:53 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-02-18 22:36:53 +0000
commitf4196138cefe01df9aed085a7534dc30f45999e8 (patch)
treeeaa685cd8ce41ba6c3114037bf42d22999ae4f9a /status.c
parentfe1aa9299eb84e89dc5009997b46e0c3bc000e45 (diff)
parentbe6dc83277c49c8f7db30cc363134463af0aa596 (diff)
downloadrtmux-f4196138cefe01df9aed085a7534dc30f45999e8.tar.gz
rtmux-f4196138cefe01df9aed085a7534dc30f45999e8.tar.bz2
rtmux-f4196138cefe01df9aed085a7534dc30f45999e8.zip
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'status.c')
-rw-r--r--status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/status.c b/status.c
index e7714a00..5f8895fb 100644
--- a/status.c
+++ b/status.c
@@ -758,9 +758,9 @@ status_prompt_set(struct client *c, const char *msg, const char *input,
status_message_clear(c);
status_prompt_clear(c);
- c->prompt_string = format_expand_time(ft, msg, time(NULL));
+ c->prompt_string = format_expand_time(ft, msg, t);
- c->prompt_buffer = format_expand_time(ft, input, time(NULL));
+ c->prompt_buffer = format_expand_time(ft, input, t);
c->prompt_index = strlen(c->prompt_buffer);
c->prompt_callbackfn = callbackfn;
@@ -817,10 +817,10 @@ status_prompt_update(struct client *c, const char *msg, const char *input)
t = time(NULL);
free(c->prompt_string);
- c->prompt_string = format_expand_time(ft, msg, time(NULL));
+ c->prompt_string = format_expand_time(ft, msg, t);
free(c->prompt_buffer);
- c->prompt_buffer = format_expand_time(ft, input, time(NULL));
+ c->prompt_buffer = format_expand_time(ft, input, t);
c->prompt_index = strlen(c->prompt_buffer);
c->prompt_hindex = 0;