From 431f2c5abd2065be04772fedfe02120805305a97 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 15 Sep 2025 19:32:03 +0200 Subject: [PATCH] InputText: fixed dubious code handling ImGuiInputTextFlags_EscapeClearsAll. Specifically the missing = 0. Somehow only now got reported by Emscripten CI. --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 50a2c896d..412835892 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -5180,7 +5180,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ apply_new_text = ""; apply_new_text_length = 0; value_changed = true; - IMSTB_TEXTEDIT_CHARTYPE empty_string; + char empty_string = 0; stb_textedit_replace(state, state->Stb, &empty_string, 0); } else if (strcmp(state->TextA.Data, state->TextToRevertTo.Data) != 0)