diff options
-rw-r--r-- | src/nnn.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -3822,33 +3822,31 @@ nochange: spawn(shell, "-c", tmp, path, F_CLI); #ifndef NORL } else { - exitcurses(); - /* Switch to current path for readline(3) */ if (chdir(path) == -1) { printwarn(); goto nochange; } + exitcurses(); + tmp = readline("nnn> "); + refresh(); + if (chdir(ipath) == -1) { printwarn(); - if (tmp) - free(tmp); + free(tmp); goto nochange; } - refresh(); - if (tmp && tmp[0]) { spawn(shell, "-c", tmp, path, F_CLI); /* readline finishing touches */ add_history(tmp); } - if (tmp) - free(tmp); + free(tmp); } #endif } |