Skip to content

Commit

Permalink
fix(exit): the TUI should not flush itself
Browse files Browse the repository at this point in the history
  • Loading branch information
zeertzjq committed Jan 3, 2023
1 parent a283a99 commit 1efedd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nvim/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1efedd5

Please sign in to comment.