aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-13 07:41:28 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-13 07:48:25 +0530
commitd2f69875be4fafbd077c94846261275b4b150b21 (patch)
tree74c137fb3c8803fd5922a5b8d34a690f3997716d /src
parent6ac353446f1c502de4f696013fdf3fd17d2b6ac4 (diff)
downloadnnn-d2f69875be4fafbd077c94846261275b4b150b21.tar.gz
Minor refactor
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 27eb07f..c5ae00c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3610,7 +3610,7 @@ static void show_help(const char *path)
"cV Move sel here%-10c^V Copy/move sel as\n"
"cX Delete sel%-13c^X Delete entry\n"
"cy List sel%-15c^Y Edit sel\n"
- "9o ^T Order toggele%-0c\n"
+ "9o ^T Order toggle%-0c\n"
"1MISC\n"
"9! ^] Shell%-16c; ^F Fire plugin\n"
"c] Cmd prompt%-13c^P Pick plugin\n"
@@ -4969,11 +4969,10 @@ nochange:
cfg.showdetail ? (printptr = &printent_long) : (printptr = &printent);
cfg.blkorder = 0;
continue;
- case SEL_ORDER:
+ default: /* SEL_ORDER */
r = get_input(messages[MSG_ORDER]);
- if ((r == 'a' || r == 'd' || r == 'e'
- || r == 's' || r == 't')
+ if ((r == 'a' || r == 'd' || r == 'e' || r == 's' || r == 't')
&& (entrycmpfn == &reventrycmp))
entrycmpfn = &entrycmp;
@@ -5037,8 +5036,6 @@ nochange:
cfg.filtermode ? presel = FILTER : statusbar(path);
goto nochange;
}
- default:
- break;
}
if (cfg.filtermode)