diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index a27fee4e90..e52adfa1a9 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -138,8 +138,8 @@ void mch_exit(int r) { exiting = true; - ui_builtin_stop(); ui_flush(); + ui_builtin_stop(); ml_close_all(true); // remove all memfiles if (!event_teardown() && r == 0) {