diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index 7ed95c8282..a6cad46344 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -228,7 +228,9 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) str = data.GetText(); ConvertSmartQuotesAndDashes( &str ); + m_te->BeginUndoAction(); m_te->AddText( str ); + m_te->EndUndoAction(); } wxTheClipboard->Close();