From b023faacf898e2f393fa8f7f91e685547080442c 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 2a4169bed..c808be175 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