diff options
author | Hendrik Norkowski | 2023-11-28 15:11:23 +0000 |
---|---|---|
committer | GitHub | 2023-11-28 15:11:23 +0000 |
commit | b023faacf898e2f393fa8f7f91e685547080442c (patch) | |
tree | 31b31d63ffc7f08d695a1803b6e0608bdeecf6a7 /helix-term | |
parent | 6d168eda275deb23b0c643aecd746af3f4cc9937 (diff) |
fix(ui): use crossterm cursor when at the end of the rope (#8934)
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 2a4169be..c808be17 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 |