Skip to content

Commit

Permalink
Fixes #543 : Cut and paste is pasting always as plain text if 'Paste …
Browse files Browse the repository at this point in the history
…external as Plain text' is checked (Beta 6)

Signed-off-by: Daniel Prado Velasco <dpradov@users.noreply.github.com>
  • Loading branch information
dpradov committed Mar 6, 2017
1 parent 126c2d7 commit eeca865
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions macros/kn_MacroMng.pas
Expand Up @@ -1831,8 +1831,11 @@ procedure PerformCmd( aCmd : TEditCmd );
with Form_Main.NoteSelText do
SetStrikeOut(not (fsStrikeout in Style));

ecCut :
ActiveNote.Editor.CutToClipboard;
ecCut: begin
ActiveNote.Editor.CutToClipboard;
if EditorOptions.PlainDefaultPaste then
TestCRCForDuplicates(ClipboardAsStringW);
end;

ecPaste :
if not EditorOptions.PlainDefaultPaste or not Clipboard.HasFormat( CF_TEXT ) then
Expand Down

0 comments on commit eeca865

Please sign in to comment.