fix(api, lua): make blank lines in a message work properly

(cherry picked from commit e6bb22e691)
This commit is contained in:
zeertzjq
2023-07-04 05:25:20 +08:00
committed by github-actions[bot]
parent 041bc87333
commit 617c6014ea
4 changed files with 71 additions and 6 deletions

View File

@@ -1686,6 +1686,7 @@ static void write_msg(String message, bool to_err, bool writeln)
if (c == NL) { \
kv_push(line_buf, NUL); \
msg(line_buf.items); \
msg_didout = true; \
kv_drop(line_buf, kv_size(line_buf)); \
kv_resize(line_buf, LINE_BUFFER_MIN_SIZE); \
} else { \