From f7ba6453980824aa4a7d096841576285efa7f6ec Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 17 Sep 2024 21:07:15 +0200 Subject: [PATCH] InputText: fixed not filling callback's SelectionEnd. (#7925) Broken by abd07f6 --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 4156ce8af..27610228d 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -4977,7 +4977,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ const int utf8_cursor_pos = callback_data.CursorPos = state->Stb->cursor; const int utf8_selection_start = callback_data.SelectionStart = state->Stb->select_start; - const int utf8_selection_end = state->Stb->select_end; + const int utf8_selection_end = callback_data.SelectionEnd = state->Stb->select_end; // Call user code callback(&callback_data);