fix(tui): fix piping output make nvim unusable

fix(tui): fix piping output make nvim unusable

(cherry picked from commit 72ce1f308b)
This commit is contained in:
Kevin Jiang
2022-06-12 15:46:21 +12:00
committed by github-actions[bot]
parent d78447481c
commit 18e0d64666

View File

@@ -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;