iomenu

interactive text selection menu
Log | Files | Refs | README | LICENSE

commit 563f084501e0dd8fdfac4abfc90f540e18315413
parent 285c6733a892228c8de6a4bc0ecfaf79393b3dba
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 16 Apr 2017 16:05:32 +0200

fixed unconsistant printed line count

Diffstat:
Miomenu.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iomenu.c b/iomenu.c @@ -175,7 +175,7 @@ print_lines(int count) int printed = 0, i = current / count * count; - while (printed++ < count && i < matchc) { + while (printed < count && i < matchc) { char *s = format(matchv[i], ws.ws_col - 1); if (opt_s && matchv[i][0] == '#') { @@ -186,7 +186,7 @@ print_lines(int count) fprintf(stderr, "\n\033[K %s\033[m", s); } - i++; + i++; printed++; } while (printed++ < count)