fixed unconsistant printed line count - iomenu - interactive terminal-based selection menu HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 563f084501e0dd8fdfac4abfc90f540e18315413 DIR parent 285c6733a892228c8de6a4bc0ecfaf79393b3dba HTML Author: Josuah Demangeon <mail@josuah.net> Date: Sun, 16 Apr 2017 16:05:32 +0200 fixed unconsistant printed line count Diffstat: M iomenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR 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)