From 661dbdca57f76cbd22f3e62f8b87ee2146a50bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Thu, 3 Jun 2021 13:32:54 +0900 Subject: [PATCH] Fix cursor not showing on (0, 0) --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index e92cf4f19..bd7846a41 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -240,7 +240,7 @@ pub fn render_buffer( 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);