mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Faster movement key bindings
This commit is contained in:
parent
de7072bdd5
commit
15ba1b15b8
12
noice.c
12
noice.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue