diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 17:32:14 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-03 17:32:49 +0200 |
| commit | 1c8990a329fabf3cf4ab790a61ee86c35391c042 (patch) | |
| tree | 724334396e43c2b3f527773eeb0b3718c152f294 /vis-cmds.c | |
| parent | 02c18c23d7eb8e520e8584af183ca9b67937d45d (diff) | |
| download | vis-1c8990a329fabf3cf4ab790a61ee86c35391c042.tar.gz vis-1c8990a329fabf3cf4ab790a61ee86c35391c042.tar.xz | |
text: remove count argument from text_{earlier,later}
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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); |
