Fix build break

This commit is contained in:
Arun Prakash Jana 2021-04-26 07:31:15 +05:30
parent 34c3d2116a
commit eea4d34423
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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;
}