mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
fix(exit): the TUI should not ui_flush() itself (#21625)
This commit is contained in:
@@ -627,7 +627,9 @@ void os_exit(int r)
|
||||
{
|
||||
exiting = true;
|
||||
|
||||
ui_flush();
|
||||
if (!ui_client_channel_id) {
|
||||
ui_flush();
|
||||
}
|
||||
ui_call_stop();
|
||||
ml_close_all(true); // remove all memfiles
|
||||
|
||||
|
@@ -506,6 +506,7 @@ handle_T ui_cursor_grid(void)
|
||||
|
||||
void ui_flush(void)
|
||||
{
|
||||
assert(!ui_client_channel_id);
|
||||
if (!ui_active()) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user