Przeglądaj źródła

Fix lint error

master
Arun Prakash Jana 5 lat temu
rodzic
commit
52b413adae
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: A75979F35C080412
1 zmienionych plików z 2 dodań i 3 usunięć
  1. +2
    -3
      src/nnn.c

+ 2
- 3
src/nnn.c Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz