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
e3b2907f2f
commit
e1da130ca9
@ -1823,12 +1823,9 @@ static int out_pos = 0; /* number of chars in out_buf */
|
|||||||
*/
|
*/
|
||||||
void out_flush(void)
|
void out_flush(void)
|
||||||
{
|
{
|
||||||
if (out_pos != 0) {
|
|
||||||
/* set out_pos to 0 before ui_write, to avoid recursiveness */
|
|
||||||
int len = out_pos;
|
int len = out_pos;
|
||||||
out_pos = 0;
|
out_pos = 0;
|
||||||
ui_write(out_buf, len);
|
ui_write(out_buf, len);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -95,6 +95,10 @@ void ui_write(uint8_t *s, int len)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!len) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char_u *tofree = NULL;
|
char_u *tofree = NULL;
|
||||||
|
|
||||||
if (output_conv.vc_type != CONV_NONE) {
|
if (output_conv.vc_type != CONV_NONE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user