aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-03 04:32:54 +0000
committerBlaž Hrastnik2021-06-03 04:34:00 +0000
commit661dbdca57f76cbd22f3e62f8b87ee2146a50bab (patch)
tree4a60027540ccfb7a9f8183eac2f2c3d212041cd0
parent5773bd6a4028ba0b8c98574d600c18dd7094a99d (diff)
Fix cursor not showing on (0, 0)
-rw-r--r--helix-term/src/ui/editor.rs2
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);