Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbowes committed May 8, 2021
1 parent e1c1d0e commit a260289
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,10 +1034,9 @@ impl InputState {
Cmd::Move(Movement::BackwardChar(n))
}
}
E(K::Char('J'), M::CTRL) |
E::ENTER => {
Cmd::AcceptOrInsertLine { accept_in_the_middle: true }
}
E(K::Char('J'), M::CTRL) | E::ENTER => Cmd::AcceptOrInsertLine {
accept_in_the_middle: true,
},
E(K::Down, M::NONE) => Cmd::LineDownOrNextHistory(1),
E(K::Up, M::NONE) => Cmd::LineUpOrPreviousHistory(1),
E(K::Char('R'), M::CTRL) => Cmd::ReverseSearchHistory,
Expand Down Expand Up @@ -1076,10 +1075,10 @@ impl InputState {
E(K::BracketedPasteStart, M::NONE) => {
let paste = rdr.read_pasted_text()?;
Cmd::Insert(1, paste)
},
_ => {
self.custom_seq_binding(rdr, wrt, &mut evt, n, positive)?.unwrap_or(Cmd::Unknown)
},
}
_ => self
.custom_seq_binding(rdr, wrt, &mut evt, n, positive)?
.unwrap_or(Cmd::Unknown),
})
}

Expand Down

0 comments on commit a260289

Please sign in to comment.