Make Scintilla paste a separate undo operation.
Fixes https://gitlab.com/kicad/code/kicad/issues/11756
This commit is contained in:
parent
20f6a83466
commit
c3a5947fe6
|
@ -228,7 +228,9 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent )
|
||||||
str = data.GetText();
|
str = data.GetText();
|
||||||
|
|
||||||
ConvertSmartQuotesAndDashes( &str );
|
ConvertSmartQuotesAndDashes( &str );
|
||||||
|
m_te->BeginUndoAction();
|
||||||
m_te->AddText( str );
|
m_te->AddText( str );
|
||||||
|
m_te->EndUndoAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTheClipboard->Close();
|
wxTheClipboard->Close();
|
||||||
|
|
Loading…
Reference in New Issue