mirror of https://github.com/jarun/nnn.git
Fix #274
This commit is contained in:
parent
650f92bf34
commit
35fc77027a
|
@ -1878,8 +1878,6 @@ END:
|
||||||
*/
|
*/
|
||||||
static char *getreadline(char *prompt, char *path, char *curpath, int *presel)
|
static char *getreadline(char *prompt, char *path, char *curpath, int *presel)
|
||||||
{
|
{
|
||||||
char *input;
|
|
||||||
|
|
||||||
/* Switch to current path for readline(3) */
|
/* Switch to current path for readline(3) */
|
||||||
if (chdir(path) == -1) {
|
if (chdir(path) == -1) {
|
||||||
printwarn(presel);
|
printwarn(presel);
|
||||||
|
@ -1888,7 +1886,7 @@ static char *getreadline(char *prompt, char *path, char *curpath, int *presel)
|
||||||
|
|
||||||
exitcurses();
|
exitcurses();
|
||||||
|
|
||||||
input = readline(prompt);
|
char *input = readline(prompt);
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
|
@ -4155,7 +4153,7 @@ nochange:
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (tmp[0])
|
if (tmp && tmp[0]) // NOLINT
|
||||||
spawn(shell, "-c", tmp, path, F_CLI);
|
spawn(shell, "-c", tmp, path, F_CLI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue