diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-29 22:50:13 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-18 13:49:33 +0100 |
| commit | 87d81f090d83c5e3aa6866e34575e55a23241b37 (patch) | |
| tree | 28138647c972cda084ea7ab6339b19f48200f3ba /vis.c | |
| parent | fb7f934204035b1e02c8394eee5c8b1df5e476ec (diff) | |
| download | vis-87d81f090d83c5e3aa6866e34575e55a23241b37.tar.gz vis-87d81f090d83c5e3aa6866e34575e55a23241b37.tar.xz | |
vis: support count for macro replay
Fix #448
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1267,7 +1267,10 @@ bool vis_macro_replay(Vis *vis, enum VisRegister id) { Macro *macro = macro_get(vis, id); if (!macro || macro == vis->recording) return false; - macro_replay(vis, macro); + int count = vis_count_get_default(vis, 1); + vis_cancel(vis); + for (int i = 0; i < count; i++) + macro_replay(vis, macro); vis_file_snapshot(vis, vis->win->file); return true; } |
