diff options
author | Blaž Hrastnik | 2021-03-31 08:17:01 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-31 08:17:01 +0000 |
commit | 6c4093c94634a94adbccb4783cddb90076881c02 (patch) | |
tree | 34d4691fe6daca0d14ce77b434830cdef72deb47 /helix-view/src/view.rs | |
parent | 9eaef6e33376407931162780cd402297c44f26c4 (diff) |
Weave through view_id references so that views into one file have independent selects.
Diffstat (limited to 'helix-view/src/view.rs')
-rw-r--r-- | helix-view/src/view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |