aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 551c912..093c694 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -579,10 +579,13 @@ static bool cmd_earlier_later(Vis *vis, Win *win, Command *cmd, const char *argv
}
if (!*unit) {
- if (argv[0][0] == 'e')
- pos = text_earlier(txt, count);
- else
- pos = text_later(txt, count);
+ VisCountIterator it = vis_count_iterator_init(vis, count);
+ while (vis_count_iterator_next(&it)) {
+ if (argv[0][0] == 'e')
+ pos = text_earlier(txt);
+ else
+ pos = text_later(txt);
+ }
}
time_t state = text_state(txt);