Fix backslash crash with blt backent (#492)

Pressing backslash would cause cursive to panic.
This commit is contained in:
Asad Mehmood 2020-08-21 21:28:33 +01:00 committed by GitHub
parent b75b5017e1
commit 69feb373e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,7 @@ fn blt_keycode_to_char(kc: KeyCode, shift: bool) -> char {
KeyCode::RightBracket if shift => '}', KeyCode::RightBracket if shift => '}',
KeyCode::RightBracket => ']', KeyCode::RightBracket => ']',
KeyCode::Backslash if shift => '|', KeyCode::Backslash if shift => '|',
KeyCode::Backspace => '\\', KeyCode::Backslash => '\\',
KeyCode::Semicolon if shift => ':', KeyCode::Semicolon if shift => ':',
KeyCode::Semicolon => ';', KeyCode::Semicolon => ';',
KeyCode::Apostrophe if shift => '"', KeyCode::Apostrophe if shift => '"',