summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-06-21 09:30:02 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-06-21 09:30:02 +0000
commit2c4996bd801d0f1adabe59891da5d4b1cb96a959 (patch)
tree27b8793545eb859309aaabffbb67625cbc9e3810 /usr.bin/tmux/server.c
parent9525288c28cedd2dda4d16de0809abf64108e777 (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.c6
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) {