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 dgkf committed Jan 30, 2024
1 parent e0193b4 commit c50e404
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 c50e404

Please sign in to comment.