mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ui: Fix out_flush/ui_write behavior to always flush for abstract_ui
This commit is contained in:
parent
df1f62194e
commit
b4f516a36a
@ -1822,13 +1822,10 @@ static int out_pos = 0; /* number of chars in out_buf */
|
||||
*/
|
||||
void out_flush(void)
|
||||
{
|
||||
if (out_pos != 0) {
|
||||
/* set out_pos to 0 before ui_write, to avoid recursiveness */
|
||||
int len = out_pos;
|
||||
out_pos = 0;
|
||||
ui_write(out_buf, len);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sometimes a byte out of a multi-byte character is written with out_char().
|
||||
|
@ -95,6 +95,10 @@ void ui_write(uint8_t *s, int len)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!len) {
|
||||
return;
|
||||
}
|
||||
|
||||
char_u *tofree = NULL;
|
||||
|
||||
if (output_conv.vc_type != CONV_NONE) {
|
||||
|
Loading…
Reference in New Issue
Block a user