diff options
Diffstat (limited to 'src/server/render_stream.rs')
| -rw-r--r-- | src/server/render_stream.rs | 8 |
1 files changed, 5 insertions, 3 deletions
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<CursorState> { + 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<CursorState> { 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), }) } |
