fix: dont use sancode on macros replaying

pull/10977/head
Evgeniy Tatarkin 2025-01-06 18:52:03 +03:00
parent 94b5e0c210
commit abb1c60afd
1 changed files with 6 additions and 1 deletions

View File

@ -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)) => {