not cause error on empty string in input
This commit is contained in:
parent
206c17e5bd
commit
9c00b7dc75
@ -2621,6 +2621,11 @@ void interpreter_ex (char *line, void *ex) {
|
|||||||
in_readline = 0;
|
in_readline = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!*line) {
|
||||||
|
in_readline = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (line && *line) {
|
if (line && *line) {
|
||||||
add_history (line);
|
add_history (line);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user