Skip to content

Commit

Permalink
fix(ui): use crossterm cursor when at the end of the rope (helix-edit…
Browse files Browse the repository at this point in the history
  • Loading branch information
hnorkowski authored and Vulpesx committed Jun 7, 2024
1 parent 4ecd985 commit cdb555c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdb555c

Please sign in to comment.