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

@@ -954,6 +954,7 @@ static void nlua_print_event(void **argv)
break;
}
msg(str + start);
msg_didout = true; // Make blank lines work properly
}
if (len && str[len - 1] == NUL) { // Last was newline
msg("");