mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
Change relative time for now to only work in the past and not show a
sign which is more useful. Also tidy up some minor style nits.
This commit is contained in:
@@ -175,7 +175,7 @@ window_clock_init(struct window_mode_entry *wme,
|
||||
struct window_clock_mode_data *data;
|
||||
struct screen *s;
|
||||
|
||||
wme->data = data = xmalloc(sizeof *data);
|
||||
wme->data = data = xcalloc(1, sizeof *data);
|
||||
data->tim = time(NULL);
|
||||
|
||||
evtimer_set(&data->timer, window_clock_timer_callback, wme);
|
||||
|
||||
Reference in New Issue
Block a user