mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix build break
This commit is contained in:
parent
34c3d2116a
commit
eea4d34423
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue