From f66be0e7b2cde427ba34772b9f30d27fd4c00df9 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 25 Jun 2015 21:52:16 -0600 Subject: [PATCH] Demo: satisfying buffer size --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 5ddb01bd..c731909f 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10975,7 +10975,7 @@ void ImGui::ShowTestWindow(bool* opened) if (ImGui::TreeNode("Multi-line Text Input")) { - static char text[1024*4] = "// F00F bug\nlabel:\n\tlock cmpxchg8b eax\n"; + static char text[1024*16] = "// F00F bug\nlabel:\n\tlock cmpxchg8b eax\n"; ImGui::PushItemWidth(-1.0f); ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(0.f, ImGui::GetTextLineHeight() * 16), ImGuiInputTextFlags_AllowTabInput); ImGui::PopItemWidth();