Skip to content

Commit

Permalink
Curly braces fix (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Natilla <[email protected]>
  • Loading branch information
aslynatilla and Antonio Natilla authored Nov 5, 2021
1 parent d832449 commit e159f3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/edit_mode/emacs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,17 @@ impl EditMode for Emacs {
(m, KeyCode::Char(c)) if m == KeyModifiers::CONTROL | KeyModifiers::ALT => {
ReedlineEvent::Edit(vec![EditCommand::InsertChar(c)])
}

(m, KeyCode::Char(c))
if m == KeyModifiers::CONTROL | KeyModifiers::ALT | KeyModifiers::SHIFT =>
{
ReedlineEvent::Edit(vec![EditCommand::InsertChar(c)])
}

(KeyModifiers::SHIFT, KeyCode::Char(c)) => {
ReedlineEvent::Edit(vec![EditCommand::InsertChar(c.to_ascii_uppercase())])
}

(KeyModifiers::NONE, KeyCode::Enter) => ReedlineEvent::Enter,
_ => self
.keybindings
Expand Down

0 comments on commit e159f3f

Please sign in to comment.