Skip to content

Commit

Permalink
fix(ui): use crossterm cursor when at the end of the rope (#8934)
Browse files Browse the repository at this point in the history
  • Loading branch information
hnorkowski committed Nov 28, 2023
1 parent 6d168ed commit b023faa
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 b023faa

Please sign in to comment.