From f88f33e2d94d1f3fa35e96897ff1053cc5add042 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 12 May 2026 01:21:09 +0300 Subject: fix: omit cursor for mobile switcher overlay --- src/server/render_stream.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/server/render_stream.rs') diff --git a/src/server/render_stream.rs b/src/server/render_stream.rs index 856a362f..45542a7a 100644 --- a/src/server/render_stream.rs +++ b/src/server/render_stream.rs @@ -246,6 +246,10 @@ pub(crate) fn visible_hyperlinks(app_state: &AppState) -> Vec<((u16, u16), Strin } fn focused_terminal_cursor(app_state: &AppState) -> Option { + if app_state.mode != Mode::Terminal { + return None; + } + let ws_idx = app_state.active?; let ws = app_state.workspaces.get(ws_idx)?; let info = app_state @@ -258,8 +262,6 @@ fn focused_terminal_cursor(app_state: &AppState) -> Option { Some(CursorState { x: cursor.x, y: cursor.y, - visible: app_state.mode == Mode::Terminal - && cursor.visible - && !crate::ui::pane_is_scrolled_back(rt), + visible: cursor.visible && !crate::ui::pane_is_scrolled_back(rt), }) } -- cgit v1.2.3