diff options
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 5 |
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; } } |