Procházet zdrojové kódy

Disable rollover at edges on scroll

master
Arun Prakash Jana před 4 roky
rodič
revize
6001eeb9a4
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. +3
    -2
      src/nnn.c

+ 3
- 2
src/nnn.c Zobrazit soubor

@@ -4303,13 +4303,14 @@ nochange:

#if NCURSES_MOUSE_VERSION > 1
/* Scroll up */
if (event.bstate == BUTTON4_PRESSED && ndents) {
if (event.bstate == BUTTON4_PRESSED && ndents && (cfg.rollover || cur)) {
move_cursor((cur + ndents - 1) % ndents, 0);
break;
}

/* Scroll down */
if (event.bstate == BUTTON5_PRESSED && ndents) {
if (event.bstate == BUTTON5_PRESSED && ndents
&& (cfg.rollover || (cur != ndents - 1))) {
move_cursor((cur + 1) % ndents, 0);
break;
}


Načítá se…
Zrušit
Uložit