Fix DELETE in Scintilla

The previous method would act like backspace at the end
of the string
This commit is contained in:
Ian McInerney 2020-06-05 14:24:26 +01:00
parent 22b8133108
commit 4d6abfdf05
1 changed files with 1 additions and 4 deletions

View File

@ -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
{