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
1 changed files with 2 additions and 4 deletions

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