InputTextMultiline: InputTextMultiline: fixed an issue calculating lines count when active.

Amend 4252275
This commit is contained in:
ocornut
2026-03-20 15:17:07 +01:00
parent 763db046fa
commit 325563a982
3 changed files with 4 additions and 6 deletions

View File

@@ -5565,7 +5565,7 @@ void ImGui::NewFrame()
// As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves.
if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId)
{
IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n");
IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() 0x%08X because it isn't marked alive anymore!\n", g.ActiveId);
ClearActiveID();
}