From 699b909d5f46982c669724115bbadfad22a4d514 Mon Sep 17 00:00:00 2001 From: Katie M Date: Sun, 13 Oct 2024 23:51:05 -0400 Subject: [PATCH] Fixed issue where cursor was drawn on curses builds erroneously --- src/third-party/imgui/imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/third-party/imgui/imgui_widgets.cpp b/src/third-party/imgui/imgui_widgets.cpp index f39a70242f969..424b093b6d9af 100644 --- a/src/third-party/imgui/imgui_widgets.cpp +++ b/src/third-party/imgui/imgui_widgets.cpp @@ -5014,7 +5014,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ { ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); - if(GImGui->IO.PreEditText && !is_multiline) + if (GImGui->IO.PreEditText[0] != '\0' && !is_multiline) { const char *preEditTextEnd = GImGui->IO.PreEditText + strlen(GImGui->IO.PreEditText); ImWchar wcharBuf[255] = { 0 };