nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit eea4d34423f3b1aabebcd36ba707a25a4780f990
parent 34c3d2116a38f8e1fe993e9b4c11cc3d2bd28b94
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon, 26 Apr 2021 07:31:15 +0530

Fix build break

Diffstat:
Msrc/nnn.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -6070,10 +6070,8 @@ nochange: #if NCURSES_MOUSE_VERSION > 1 /* Scroll up */ if (event.bstate == BUTTON4_PRESSED && ndents && (cfg.rollover || cur)) { - if (!cfg.rollover && cur < scroll_lines) - move_cursor(0, 0); - else - move_cursor((cur + ndents - scroll_lines) % ndents, 0); + move_cursor((!cfg.rollover && cur < scroll_lines + ? 0 : (cur + ndents - scroll_lines) % ndents), 0); break; }