mirror of https://github.com/helix-editor/helix
fix: dont use sancode on macros replaying
parent
f754c81499
commit
d4e135e416
|
@ -938,7 +938,12 @@ impl EditorView {
|
|||
|
||||
fn command_mode(&mut self, mode: Mode, cxt: &mut commands::Context, event: KeyEvent) {
|
||||
#[cfg(feature = "scancode")]
|
||||
let event = cxt.editor.scancode_apply(event);
|
||||
// dont use scancode on macros replaying
|
||||
let event = if cxt.editor.macro_replaying.is_empty() {
|
||||
cxt.editor.scancode_apply(event)
|
||||
} else {
|
||||
event
|
||||
};
|
||||
match (event, cxt.editor.count) {
|
||||
// If the count is already started and the input is a number, always continue the count.
|
||||
(key!(i @ '0'..='9'), Some(count)) => {
|
||||
|
|
Loading…
Reference in New Issue