From 2f53644c6d7d70b680a5d734c8732e5f367aacf3 Mon Sep 17 00:00:00 2001 From: Bob Date: Fri, 22 Jul 2022 09:21:46 +0800 Subject: jumplist picker (#3033) * jumplist picker * remove jumps slicing Co-authored-by: Benoît Cortier * remove unnecessary deref format! parameter Co-authored-by: Benoît Cortier Co-authored-by: Benoît Cortier --- helix-view/src/view.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helix-view/src') diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index 8bf3611f..e74e0f65 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -58,6 +58,10 @@ impl JumpList { pub fn remove(&mut self, doc_id: &DocumentId) { self.jumps.retain(|(other_id, _)| other_id != doc_id); } + + pub fn get(&self) -> &[Jump] { + &self.jumps + } } pub struct View { -- cgit v1.2.3-70-g09d2