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

synchronized updates. GitHub issue 5648 from bugreporter23 at gmail dot
com.

(cherry picked from commit 5e5e15f6c7)
This commit is contained in:
nicm
2026-09-28 11:25:51 +00:00
committed by Nicholas Marriott
parent e66d057323
commit 82b67a262a

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>
@@ -2225,7 +2225,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 &&