From 1c8990a329fabf3cf4ab790a61ee86c35391c042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 3 May 2017 17:32:14 +0200 Subject: text: remove count argument from text_{earlier,later} --- vis-cmds.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'vis-cmds.c') 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); -- cgit v1.2.3