Quick switch on empty command

This commit is contained in:
Arun Prakash Jana 2018-12-13 21:49:06 +05:30
parent f76724e0ef
commit c26b9abd05
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

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