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

This commit is contained in:
zeertzjq
2023-07-04 07:19:02 +08:00
committed by GitHub
parent 35c3275b48
commit 92760a7f42
4 changed files with 71 additions and 6 deletions

View File

@@ -1687,6 +1687,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 { \