aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index e436e1cf..937326f6 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -795,7 +795,7 @@ fn goto_buffer(editor: &mut Editor, direction: Direction) {
let iter = editor.documents.keys();
let mut iter = iter.rev().skip_while(|id| *id != &current);
iter.next(); // skip current item
- iter.next().or_else(|| editor.documents.keys().rev().next())
+ iter.next().or_else(|| editor.documents.keys().next_back())
}
}
.unwrap();
@@ -2789,7 +2789,7 @@ fn buffer_picker(cx: &mut Context) {
.editor
.documents
.values()
- .map(|doc| new_meta(doc))
+ .map(new_meta)
.collect::<Vec<BufferMeta>>();
// mru