mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 11:11:33 +00:00
Refresh on empty command
This commit is contained in:
parent
c26b9abd05
commit
c4c162f33a
1 changed files with 2 additions and 3 deletions
|
@ -3422,8 +3422,7 @@ nochange:
|
||||||
spawn(shell, tmp, dir, path, F_NORMAL | F_SIGINT);
|
spawn(shell, tmp, dir, path, F_NORMAL | F_SIGINT);
|
||||||
} else if (sel == SEL_RUNCMD) {
|
} else if (sel == SEL_RUNCMD) {
|
||||||
tmp = xreadline(NULL, "> ");
|
tmp = xreadline(NULL, "> ");
|
||||||
if (!tmp || !tmp[0])
|
if (tmp && tmp[0])
|
||||||
break;
|
|
||||||
spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT);
|
spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT);
|
||||||
} else
|
} else
|
||||||
spawn(shell, shell_arg, NULL, path, F_NORMAL | F_MARKER);
|
spawn(shell, shell_arg, NULL, path, F_NORMAL | F_MARKER);
|
||||||
|
|
Loading…
Add table
Reference in a new issue