Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r--helix-term/src/compositor.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs
index a57fd617..28c8651a 100644
--- a/helix-term/src/compositor.rs
+++ b/helix-term/src/compositor.rs
@@ -137,9 +137,12 @@ impl Compositor {
}
pub fn handle_event(&mut self, event: &Event, cx: &mut Context) -> bool {
- // If it is a key event and a macro is being recorded, push the key event to the recording.
+ // If it is a key event, a macro is being recorded, and a macro isn't being replayed,
+ // push the key event to the recording.
if let (Event::Key(key), Some((_, keys))) = (event, &mut cx.editor.macro_recording) {
- keys.push(*key);
+ if cx.editor.macro_replaying.is_empty() {
+ keys.push(*key);
+ }
}
let mut callbacks = Vec::new();