fix:修正ish编译缺失语句问题

This commit is contained in:
taynpg 2025-02-11 19:23:20 +08:00
parent 0c566d0b0a
commit 1106518755

View File

@ -518,8 +518,7 @@ void fc_set_header(const char* h)
for (const auto& item : v) { for (const auto& item : v) {
if (item.size() > 1) { if (item.size() > 1) {
header_len += 2; header_len += 2;
} } else {
else {
header_len += 1; header_len += 1;
} }
} }
@ -827,6 +826,9 @@ void color_print(const char* text, const COLOR_TYPE color)
} }
// Resets the text to default color // Resets the text to default color
printf("\033[0m"); printf("\033[0m");
#if defined(IOS_ISH)
fflush(stdout);
#endif
#endif #endif
fc_unlock_print(); fc_unlock_print();
} }