mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
api: vim_err_write: don't wait for return in the middle of a message
This commit is contained in:
parent
22ea2900d0
commit
8c2481806d
@ -629,6 +629,7 @@ static void write_msg(String message, bool to_err)
|
|||||||
\
|
\
|
||||||
line_buf[pos++] = message.data[i];
|
line_buf[pos++] = message.data[i];
|
||||||
|
|
||||||
|
++no_wait_return;
|
||||||
for (uint32_t i = 0; i < message.size; i++) {
|
for (uint32_t i = 0; i < message.size; i++) {
|
||||||
if (to_err) {
|
if (to_err) {
|
||||||
PUSH_CHAR(i, err_pos, err_line_buf, emsg);
|
PUSH_CHAR(i, err_pos, err_line_buf, emsg);
|
||||||
@ -636,4 +637,6 @@ static void write_msg(String message, bool to_err)
|
|||||||
PUSH_CHAR(i, out_pos, out_line_buf, msg);
|
PUSH_CHAR(i, out_pos, out_line_buf, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
--no_wait_return;
|
||||||
|
msg_end();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user