From 1b28f11acb1267a5bc9672ebd66d06573a628864 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 19 Jun 2015 17:34:19 -0600 Subject: [PATCH] InputTextMultiline() filtering out \r for now (#200) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 0641ceaa8e1b..2388ab44905c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6720,7 +6720,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f if (c < 128 && c != ' ' && !isprint((int)(c & 0xFF))) { bool pass = false; - pass |= ((c == '\n' || c == '\r') && (flags & ImGuiInputTextFlags_Multiline)); + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); if (!pass) return false;