diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 94a5b52a..8f782ac2 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1871,6 +1871,7 @@ struct ExampleAppConsole ExampleAppConsole() { ClearLog(); + memset(InputBuf, 0, sizeof(InputBuf)); HistoryPos = -1; Commands.push_back("HELP"); Commands.push_back("HISTORY");