mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(exit): the TUI should not ui_flush() itself (#21625)
This commit is contained in:
parent
4dd793a256
commit
c3d8665851
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user