From 6c4093c94634a94adbccb4783cddb90076881c02 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 31 Mar 2021 17:17:01 +0900 Subject: Weave through view_id references so that views into one file have independent selects. --- helix-view/src/view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src/view.rs') diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index 9e4c1373..89caaf3e 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -74,7 +74,7 @@ impl View { } pub fn ensure_cursor_in_view(&mut self, doc: &Document) { - let cursor = doc.selection().cursor(); + let cursor = doc.selection(self.id).cursor(); let line = doc.text().char_to_line(cursor); let document_end = self.first_line + (self.area.height as usize).saturating_sub(2); -- cgit v1.2.3-70-g09d2