diff options
author | Blaž Hrastnik | 2021-06-03 04:32:54 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-03 04:34:00 +0000 |
commit | 661dbdca57f76cbd22f3e62f8b87ee2146a50bab (patch) | |
tree | 4a60027540ccfb7a9f8183eac2f2c3d212041cd0 | |
parent | 5773bd6a4028ba0b8c98574d600c18dd7094a99d (diff) |
Fix cursor not showing on (0, 0)
-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 e92cf4f1..bd7846a4 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -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); |