Fix lint error

This commit is contained in:
Arun Prakash Jana 2019-09-26 06:24:11 +05:30
parent ccc25fd0f0
commit 52b413adae
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 3 deletions

View File

@ -3202,9 +3202,8 @@ static void move_cursor(int target, int ignore_scrolloff)
* screen by allowing it to move inward and disallowing it to move
* outward (deeper into the scrolloff margin area).
*/
if (cur < curscroll + scrolloff && delta < 0)
curscroll += delta;
else if (cur > curscroll + onscreen - scrolloff - 1 && delta > 0)
if (((cur < (curscroll + scrolloff)) && delta < 0)
|| ((cur > (curscroll + onscreen - scrolloff - 1)) && delta > 0))
curscroll += delta;
}
curscroll = MIN(curscroll, MIN(cur, ndents - onscreen));