mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
ui: Fix out_flush/ui_write behavior to always flush for abstract_ui
This commit is contained in:
@@ -1822,12 +1822,9 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user