aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorBob2022-07-22 01:21:46 +0000
committerGitHub2022-07-22 01:21:46 +0000
commit2f53644c6d7d70b680a5d734c8732e5f367aacf3 (patch)
tree919441f181f0da37deb3e78e4ec48f4f997a6519 /helix-view/src
parente560212ec5336b3257b80bca5f815578d640d9e5 (diff)
jumplist picker (#3033)
* jumplist picker * remove jumps slicing Co-authored-by: Benoît Cortier <bcortier@proton.me> * remove unnecessary deref format! parameter Co-authored-by: Benoît Cortier <bcortier@proton.me> Co-authored-by: Benoît Cortier <bcortier@proton.me>
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/view.rs4
1 files changed, 4 insertions, 0 deletions
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 {