mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
parent
cc2aaf5877
commit
729e775998
11
src/nnn.c
11
src/nnn.c
|
@ -2974,6 +2974,13 @@ nochange:
|
|||
printmsg("unsupported file");
|
||||
goto nochange;
|
||||
}
|
||||
case SEL_NEXT: // fallthrough
|
||||
case SEL_PREV: // fallthrough
|
||||
case SEL_PGDN: // fallthrough
|
||||
case SEL_PGUP: // fallthrough
|
||||
case SEL_HOME: // fallthrough
|
||||
case SEL_END:
|
||||
switch (sel) {
|
||||
case SEL_NEXT:
|
||||
if (cur < ndents - 1)
|
||||
++cur;
|
||||
|
@ -2999,9 +3006,11 @@ nochange:
|
|||
case SEL_HOME:
|
||||
cur = 0;
|
||||
break;
|
||||
case SEL_END:
|
||||
default: /* case SEL_END */
|
||||
cur = ndents - 1;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SEL_CDHOME: // fallthrough
|
||||
case SEL_CDBEGIN: // fallthrough
|
||||
case SEL_CDLAST: // fallthrough
|
||||
|
|
Loading…
Reference in a new issue