From f2959641c08769bc46ff3dbe7bf3ce34060cedeb Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 23 Dec 2019 18:44:19 +0100 Subject: [PATCH] SDK/Console: Fix selection erase --- SDK/src/NDK/Console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDK/src/NDK/Console.cpp b/SDK/src/NDK/Console.cpp index 20a004f25..e98ad90ec 100644 --- a/SDK/src/NDK/Console.cpp +++ b/SDK/src/NDK/Console.cpp @@ -72,7 +72,7 @@ namespace Ndk m_input->OnTextAreaKeyBackspace.Connect([](const AbstractTextAreaWidget* textArea, bool* ignoreDefaultAction) { - if (textArea->GetGlyphIndex() <= s_inputPrefixSize) + if (textArea->GetGlyphIndex() < s_inputPrefixSize) *ignoreDefaultAction = true; });