Skip to content

Commit

Permalink
InputText: fixed not filling callback's SelectionEnd. (#7925)
Browse files Browse the repository at this point in the history
Broken by abd07f6
  • Loading branch information
ocornut committed Sep 17, 2024
1 parent e648dbb commit f7ba645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7ba645

Please sign in to comment.