Commit 970cbcd3 authored by vysheng's avatar vysheng

Fixed fail on empty command line

parent cdea9ca8
...@@ -416,7 +416,7 @@ void interpreter (char *line UU) { ...@@ -416,7 +416,7 @@ void interpreter (char *line UU) {
char *command; char *command;
while (1) { while (1) {
command = next_token (&l); command = next_token (&l);
if (!command) { return; } if (!command) { in_readline = 0; return; }
if (*command == '[' && command[l - 1] == ']') { if (*command == '[' && command[l - 1] == ']') {
work_modifier (command); work_modifier (command);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment