diff options
| author | 2018-12-07 00:43:49 +0530 | |
|---|---|---|
| committer | 2018-12-07 00:43:49 +0530 | |
| commit | 2d8afc8de7920489df1f231d787f985bf4ed13ab (patch) | |
| tree | 1360fc238aae375d606c92f8769dc4ceaeaed61c /src | |
| parent | b59a21b57e5af803d77612a0f1d47c4d628007b2 (diff) | |
| download | nnn-2d8afc8de7920489df1f231d787f985bf4ed13ab.tar.gz | |
Support launching cli utility too
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -2051,7 +2051,7 @@ static int show_help(char *path) "d^J Disk usage S Apparent du\n" "es Size t Modification time\n" "1MISC\n" - "eo Launch GUI app !, ^] Spawn SHELL in dir\n" + "a!, ^] Spawn SHELL in dir o Launch app\n" "eR Run custom script L Lock terminal\n"}; if (fd == -1) @@ -3221,13 +3221,13 @@ nochange: goto nochange; } - if (sel == SEL_OPEN) { - r = get_input("press 'c' for cli mode"); - if (r == 'c') - r = F_NORMAL; - else - r = F_NOWAIT | F_NOTRACE; + r = get_input("press 'c' for cli mode"); + if (r == 'c') + r = F_NORMAL; + else + r = F_NOWAIT | F_NOTRACE; + if (sel == SEL_OPEN) { getprogarg(tmp, &ptr); mkpath(path, dents[cur].name, newpath, PATH_MAX); spawn(tmp, ptr, newpath, path, r); @@ -3254,7 +3254,7 @@ nochange: ++ptr; } - spawn(tmp, ptr1, ptr2, path, F_NOWAIT | F_NOTRACE); + spawn(tmp, ptr1, ptr2, path, r); break; } |