Skip to content

Commit f66be0e

Browse files
committed
Demo: satisfying buffer size
1 parent ea2c824 commit f66be0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10975,7 +10975,7 @@ void ImGui::ShowTestWindow(bool* opened)
1097510975

1097610976
if (ImGui::TreeNode("Multi-line Text Input"))
1097710977
{
10978-
static char text[1024*4] = "// F00F bug\nlabel:\n\tlock cmpxchg8b eax\n";
10978+
static char text[1024*16] = "// F00F bug\nlabel:\n\tlock cmpxchg8b eax\n";
1097910979
ImGui::PushItemWidth(-1.0f);
1098010980
ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(0.f, ImGui::GetTextLineHeight() * 16), ImGuiInputTextFlags_AllowTabInput);
1098110981
ImGui::PopItemWidth();

0 commit comments

Comments
 (0)