Browse Source

Attempt to handle deleting double-byte chars in Scintilla.

6.0.7
Jeff Young 4 years ago
parent
commit
9975b8fb10
  1. 5
      common/scintilla_tricks.cpp

5
common/scintilla_tricks.cpp

@ -208,10 +208,11 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent )
}
else if( aEvent.GetKeyCode() == WXK_DELETE )
{
if( m_te->GetSelectionEnd() == m_te->GetSelectionStart() )
m_te->CharRightExtend();
if( m_te->GetSelectionEnd() > m_te->GetSelectionStart() )
m_te->DeleteBack();
else
m_te->DeleteRange( m_te->GetSelectionStart(), 1 );
}
else if( aEvent.GetKeyCode() == WXK_ESCAPE )
{

Loading…
Cancel
Save