Use mode screen for cursor not base which may be wrong during

synchronized updates. GitHub issue 5648 from bugreporter23 at gmail dot
com.
This commit is contained in:
nicm
2026-09-28 11:25:51 +00:00
committed by tmux update bot
parent db3950ed07
commit 5e5e15f6c7

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: server-client.c,v 1.514 2026/09/22 06:46:50 nicm Exp $ */
/* $OpenBSD: server-client.c,v 1.515 2026/09/28 11:25:51 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2093,7 +2093,7 @@ server_client_reset_state(struct client *c)
}
if (!prompt) {
cursor = 0;
pane_mode = wp->base.mode;
pane_mode = s->mode;
tty_window_offset(tty, &ox, &oy, &sx, &sy);
if (wp->xoff + (int)s->cx >= (int)ox &&