From 18e0d64666baa6fa3beaf63c2bfb519f7cc304a2 Mon Sep 17 00:00:00 2001 From: Kevin Jiang Date: Sun, 12 Jun 2022 15:46:21 +1200 Subject: [PATCH] fix(tui): fix piping output make nvim unusable fix(tui): fix piping output make nvim unusable (cherry picked from commit 72ce1f308b3c63724cb73314cca37026bfd6d47a) --- src/nvim/ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 4fe3e1157c..a23d223e91 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -521,7 +521,7 @@ void ui_flush(void) api_free_array(style); pending_mode_info_update = false; } - if (pending_mode_update) { + if (pending_mode_update && !starting) { char *full_name = shape_table[ui_mode_idx].full_name; ui_call_mode_change(cstr_as_string(full_name), ui_mode_idx); pending_mode_update = false;