diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-02-06 23:28:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-02-06 23:28:53 +0000 |
commit | f3d80d12fcf28e7f5f15baffff8aa62786e5b0ec (patch) | |
tree | bdd15598e546152a1f5f1bdd2aceaa4c2dbe88e7 /usr.bin/tmux | |
parent | 3318608864fcb14a5c03e4cf97495dbd6d23bfd7 (diff) |
Use the same time for both calls to format_expand_time.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/status.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index f4bad85d365..fde52a88739 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.123 2015/02/06 17:21:08 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.124 2015/02/06 23:28:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |