Skip to content

Commit

Permalink
Fix cursor not showing on (0, 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jun 3, 2021
1 parent 5773bd6 commit 661dbdc
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 @@ -240,7 +240,7 @@ impl EditorView {
for selection in doc
.selection(view.id)
.iter()
.filter(|range| screen.overlaps(&range))
.filter(|range| range.overlaps(&screen))
{
// TODO: render also if only one of the ranges is in viewport
let mut start = view.screen_coords_at_pos(doc, text, selection.anchor);
Expand Down

0 comments on commit 661dbdc

Please sign in to comment.