Revert "Handle nav cases separately"

This reverts commit 1430993858.
This commit is contained in:
Arun Prakash Jana 2019-02-01 21:23:27 +05:30
parent cc2aaf5877
commit 729e775998
1 changed files with 35 additions and 26 deletions

View File

@ -2974,6 +2974,13 @@ 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;
@ -2999,9 +3006,11 @@ nochange:
case SEL_HOME: case SEL_HOME:
cur = 0; cur = 0;
break; break;
case SEL_END: default: /* 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