From 5d6bcbf02227fa5ca0951f69e4f112faf0d956cb Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 4 Apr 2024 22:44:40 +0000 Subject: [PATCH] Pick newest session as documented, not oldest, from Magnus Gross. --- usr.bin/tmux/server-fn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index ad01c8ae7fc..e3cd2186cf7 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.136 2024/03/21 11:30:42 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.137 2024/04/04 22:44:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -410,7 +410,7 @@ server_find_session(struct session *s, static int server_newer_session(struct session *s_loop, struct session *s_out) { - return (timercmp(&s_loop->activity_time, &s_out->activity_time, <)); + return (timercmp(&s_loop->activity_time, &s_out->activity_time, >)); } static int -- 2.20.1