|
|
@@ -3709,8 +3709,22 @@ nochange: |
|
|
|
break; |
|
|
|
default: /* SEL_RUNCMD */ |
|
|
|
exitcurses(); |
|
|
|
|
|
|
|
/* Switch to current path for readline(3) */ |
|
|
|
if (chdir(path) == -1) { |
|
|
|
printwarn(); |
|
|
|
goto nochange; |
|
|
|
} |
|
|
|
|
|
|
|
tmp = readline("nnn> "); |
|
|
|
|
|
|
|
if (chdir(ipath) == -1) { |
|
|
|
printwarn(); |
|
|
|
goto nochange; |
|
|
|
} |
|
|
|
|
|
|
|
refresh(); |
|
|
|
|
|
|
|
if (tmp && tmp[0]) { |
|
|
|
spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT); |
|
|
|
add_history(tmp); |
|
|
|