mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Handle nav cases separately
This commit is contained in:
parent
cfb524ea5e
commit
1430993858
11
src/nnn.c
11
src/nnn.c
|
@ -2962,13 +2962,6 @@ nochange:
|
||||||
printmsg("unsupported file");
|
printmsg("unsupported file");
|
||||||
goto nochange;
|
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:
|
case SEL_NEXT:
|
||||||
if (cur < ndents - 1)
|
if (cur < ndents - 1)
|
||||||
++cur;
|
++cur;
|
||||||
|
@ -2994,11 +2987,9 @@ nochange:
|
||||||
case SEL_HOME:
|
case SEL_HOME:
|
||||||
cur = 0;
|
cur = 0;
|
||||||
break;
|
break;
|
||||||
default: /* case SEL_END */
|
case SEL_END:
|
||||||
cur = ndents - 1;
|
cur = ndents - 1;
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
break;
|
|
||||||
case SEL_CDHOME: // fallthrough
|
case SEL_CDHOME: // fallthrough
|
||||||
case SEL_CDBEGIN: // fallthrough
|
case SEL_CDBEGIN: // fallthrough
|
||||||
case SEL_CDLAST: // fallthrough
|
case SEL_CDLAST: // fallthrough
|
||||||
|
|
Loading…
Reference in a new issue