Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbozo committed Apr 16, 2024
1 parent 7339066 commit bdda34d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,11 @@ fn goto_buffer(editor: &mut Editor, direction: Direction, count: usize) {
Direction::Backward => {
let iter = editor.documents.keys();
// skip 'count' times past current buffer
let mut iter = iter.rev().cycle().skip_while(|id| *id != &current).skip(count);
let mut iter = iter
.rev()
.cycle()
.skip_while(|id| *id != &current)
.skip(count);
iter.next()
}
}
Expand Down

0 comments on commit bdda34d

Please sign in to comment.