Make Scintilla paste a separate undo operation.

Fixes https://gitlab.com/kicad/code/kicad/issues/11756
This commit is contained in:
Jeff Young 2022-07-26 18:16:38 +01:00
parent 20f6a83466
commit c3a5947fe6
1 changed files with 2 additions and 0 deletions

View File

@ -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();