on master help sign in
fix(ui): use crossterm cursor when at the end of the rope (#8934)
b023faaHendrik Norkowski
helix-term/src/ui/editor.rs+1−1
@@ -469,7 +469,7 @@ impl EditorView {
469
469
470 // Special-case: cursor at end of the rope.
470 // Special-case: cursor at end of the rope.
471 if range.head == range.anchor && range.head == text.len_chars() {
471 if range.head == range.anchor && range.head == text.len_chars() {
472− if !selection_is_primary || cursor_is_block {
472+ if !selection_is_primary || (cursor_is_block && is_terminal_focused) {
473 // Bar and underline cursors are drawn by the terminal
473 // Bar and underline cursors are drawn by the terminal
474 // BUG: If the editor area loses focus while having a bar or
474 // BUG: If the editor area loses focus while having a bar or
475 // underline cursor (eg. when a regex prompt has focus) then
475 // underline cursor (eg. when a regex prompt has focus) then