aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 193d5d40..cb223faf 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1224,9 +1224,12 @@ fn extend_prev_char(cx: &mut Context) {
}
fn repeat_last_motion(cx: &mut Context) {
+ let count = cx.count();
let last_motion = cx.editor.last_motion.take();
if let Some(m) = &last_motion {
- m.run(cx.editor);
+ for _ in 0..count {
+ m.run(cx.editor);
+ }
cx.editor.last_motion = last_motion;
}
}