Sfoglia il codice sorgente

Faster movement key bindings

master
lostd 10 anni fa
parent
commit
15ba1b15b8
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. +12
    -0
      noice.c

+ 12
- 0
noice.c Vedi File

@@ -229,6 +229,18 @@ nextsel(int *cur, int max)
if (*cur > 0) if (*cur > 0)
(*cur)--; (*cur)--;
break; break;
/* Page down */
case KEY_NPAGE:
case CONTROL('D'):
if (*cur < max -1)
(*cur) += MIN((LINES - 4) / 2, max - 1 - *cur);
break;
/* Page up */
case KEY_PPAGE:
case CONTROL('U'):
if (*cur > 0)
(*cur) -= MIN((LINES - 4) / 2, *cur);
break;
} }


return 0; return 0;


||||||
x
 
000:0
Loading…
Annulla
Salva