fix(ui): use crossterm cursor when at the end of the rope (#8934)
commitb023faacf898e2f393fa8f7f91e685547080442c
authorHendrik Norkowski <hnorkowski@mail.de>
dateTue 28 Nov 2023, 16:11 (3 years ago)
parent6d168ed
helix-term/src/ui/editor.rs+1−1
@@ -469,7 +469,7 @@ impl EditorView {
469469
470470 // Special-case: cursor at end of the rope.
471471 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) {
473473 // Bar and underline cursors are drawn by the terminal
474474 // BUG: If the editor area loses focus while having a bar or
475475 // underline cursor (eg. when a regex prompt has focus) then