diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-06-21 09:30:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-06-21 09:30:02 +0000 |
commit | 2c4996bd801d0f1adabe59891da5d4b1cb96a959 (patch) | |
tree | 27b8793545eb859309aaabffbb67625cbc9e3810 /usr.bin/tmux/server.c | |
parent | 9525288c28cedd2dda4d16de0809abf64108e777 (diff) |
Store time lines are scrolled into history and display in copy mode.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index ef1183146a5..f98ea710ee5 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.201 2022/05/30 12:48:57 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.202 2022/06/21 09:30:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -55,6 +55,8 @@ struct cmd_find_state marked_pane; static u_int message_next; struct message_list message_log; +time_t current_time; + static int server_loop(void); static void server_send_exit(void); static void server_accept(int, short, void *); @@ -257,6 +259,8 @@ server_loop(void) struct client *c; u_int items; + current_time = time (NULL); + do { items = cmdq_next(NULL); TAILQ_FOREACH(c, &clients, entry) { |