From 0251a8cf6a2a0ee2eb10473acadc60bf929c6a15 Mon Sep 17 00:00:00 2001 From: Hendrik Norkowski Date: Tue, 28 Nov 2023 16:11:23 +0100 Subject: [PATCH] fix(ui): use crossterm cursor when at the end of the rope (#8934) --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 2a4169beda26..c808be175e0b 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -469,7 +469,7 @@ impl EditorView { // Special-case: cursor at end of the rope. if range.head == range.anchor && range.head == text.len_chars() { - if !selection_is_primary || cursor_is_block { + if !selection_is_primary || (cursor_is_block && is_terminal_focused) { // Bar and underline cursors are drawn by the terminal // BUG: If the editor area loses focus while having a bar or // underline cursor (eg. when a regex prompt has focus) then