Do not show the cursor for a hidden active pane.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Grant
2026-10-01 11:14:21 +01:00
parent fa4ebf2534
commit e0815b51f6
2 changed files with 74 additions and 0 deletions

View File

@@ -2121,6 +2121,10 @@ server_client_reset_state(struct client *c)
cy += status_line_size(c);
}
/* A hidden pane has no cursor. */
if (!window_pane_is_visible(wp))
cursor = 0;
if (!cursor)
mode &= ~MODE_CURSOR;
}