tb Allow empty lines
This commit is contained in:
@ -167,6 +167,13 @@ bool interp_runstring(char *string, InterpResult **res, bool logcmds, bool inter
|
||||
uprintf("+%s\n", line);
|
||||
}
|
||||
|
||||
bool skip;
|
||||
STRING_CHECK_ALL(line, string_chr_isspace, skip);
|
||||
if (skip) {
|
||||
line = string_tokenizealloc(NULL, "\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
Tokenizer tz; ZERO(&tz);
|
||||
tz_init(&tz, line);
|
||||
|
||||
|
Reference in New Issue
Block a user