From 4d6abfdf05dc7b3e506f9fb5d3c0c9bdfc402adb Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 5 Jun 2020 14:24:26 +0100 Subject: [PATCH] Fix DELETE in Scintilla The previous method would act like backspace at the end of the string --- common/scintilla_tricks.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index 933c0d99a8..53bfa012c3 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -130,10 +130,7 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) if( m_te->GetSelectionEnd() > m_te->GetSelectionStart() ) m_te->DeleteBack(); else - { - m_te->CharRight(); - m_te->DeleteBack(); - } + m_te->DeleteRange( m_te->GetSelectionStart(), 1 ); } else {