control.c: fixed page jump bug - iomenu - interactive terminal-based selection menu
(HTM) git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit b0af07b5048120f49051a183572b599be2a64cda
(DIR) parent 8850bebc9c87d3331bcfcf6139f05821c6f1237e
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Mon, 30 Oct 2017 01:03:53 +0100
control.c: fixed page jump bug
Diffstat:
M control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/control.c b/control.c
@@ -34,7 +34,7 @@ move_page(signed int sign)
int i;
i = current - current % rows + rows * sign;
- if (!(0 < i && i < matchc))
+ if (!(0 <= i && i < matchc))
return;
current = i - 1;
move(+1);