Browse Source

Refresh on empty command

master
Arun Prakash Jana 5 years ago
parent
commit
c4c162f33a
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/nnn.c

+ 2
- 3
src/nnn.c View File

@@ -3422,9 +3422,8 @@ nochange:
spawn(shell, tmp, dir, path, F_NORMAL | F_SIGINT);
} else if (sel == SEL_RUNCMD) {
tmp = xreadline(NULL, "> ");
if (!tmp || !tmp[0])
break;
spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT);
if (tmp && tmp[0])
spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT);
} else
spawn(shell, shell_arg, NULL, path, F_NORMAL | F_MARKER);



Loading…
Cancel
Save