on master help sign in
respect count for repeating motion (#3057)
e6a6e25Bob
helix-term/src/commands.rs+4−1
@@ -1224,9 +1224,12 @@ fn extend_prev_char(cx: &mut Context) {
1224}
1224}
1225
1225
1226fn repeat_last_motion(cx: &mut Context) {
1226fn repeat_last_motion(cx: &mut Context) {
1227+ let count = cx.count();
1227 let last_motion = cx.editor.last_motion.take();
1228 let last_motion = cx.editor.last_motion.take();
1228 if let Some(m) = &last_motion {
1229 if let Some(m) = &last_motion {
1230+ for _ in 0..count {
1229− m.run(cx.editor);
1231+ m.run(cx.editor);
1232+ }
1230 cx.editor.last_motion = last_motion;
1233 cx.editor.last_motion = last_motion;
1231 }
1234 }
1232}
1235}