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(); }