aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index c20be202e8..b5207f9cf6 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -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