From 1106518755bc91afb0a110a1b589eca031d980e2 Mon Sep 17 00:00:00 2001 From: taynpg Date: Tue, 11 Feb 2025 19:23:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3ish=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E7=BC=BA=E5=A4=B1=E8=AF=AD=E5=8F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filecomplete.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/filecomplete.cpp b/filecomplete.cpp index 6f7183f..1f3b63e 100644 --- a/filecomplete.cpp +++ b/filecomplete.cpp @@ -518,8 +518,7 @@ void fc_set_header(const char* h) for (const auto& item : v) { if (item.size() > 1) { header_len += 2; - } - else { + } else { header_len += 1; } } @@ -827,6 +826,9 @@ void color_print(const char* text, const COLOR_TYPE color) } // Resets the text to default color printf("\033[0m"); +#if defined(IOS_ISH) + fflush(stdout); +#endif #endif fc_unlock_print(); }