mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-02 19:27:27 +01:00
InputText: fixed not filling callback's SelectionEnd. (#7925)
Broken by abd07f6
This commit is contained in:
parent
e648dbb59d
commit
f7ba645398
@ -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_cursor_pos = callback_data.CursorPos = state->Stb->cursor;
|
||||||
const int utf8_selection_start = callback_data.SelectionStart = state->Stb->select_start;
|
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
|
// Call user code
|
||||||
callback(&callback_data);
|
callback(&callback_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user