mirror of
https://github.com/ocornut/imgui.git
synced 2025-08-06 13:38:55 +08:00
Removing useless check introduced in b0d172
This commit is contained in:
parent
8afd7a2b45
commit
219bdfcb7f
@ -3904,7 +3904,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
||||
// Render text only (no selection, no cursor)
|
||||
text_color = ImGuiCol_Text;
|
||||
buf_display = (g.ActiveId == id && !is_readonly && state->TextAIsValid) ? state->TextA.Data : buf;
|
||||
if (is_multiline && buf_display)
|
||||
if (is_multiline)
|
||||
text_size = ImVec2(size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width
|
||||
else if (g.ActiveId == id)
|
||||
buf_display_end = buf_display + state->CurLenA;
|
||||
|
Loading…
Reference in New Issue
Block a user