Handle nav cases separately

This commit is contained in:
Arun Prakash Jana 2019-01-30 00:56:27 +05:30
parent cfb524ea5e
commit 1430993858
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 25 additions and 34 deletions

View File

@ -2962,13 +2962,6 @@ 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;
@ -2994,11 +2987,9 @@ nochange:
case SEL_HOME:
cur = 0;
break;
default: /* case SEL_END */
case SEL_END:
cur = ndents - 1;
break;
}
break;
case SEL_CDHOME: // fallthrough
case SEL_CDBEGIN: // fallthrough
case SEL_CDLAST: // fallthrough