From 7e09355a22b826857b7bf508497159c8ea398dfd Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 16 Dec 2015 08:30:57 +0100 Subject: [PATCH] editor, does not replace clipboard to reload newer doc version --- src/ce_synmemo.pas | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index 2dcdb22a..bc111b77 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -1025,12 +1025,10 @@ begin str := TStringList.Create; try str.LoadFromFile(fFilename); - ClearAll; - if str.Count > 0 then - begin - DoCopyToClipboard(str.Text); - PasteFromClipboard; - end; + SelectAll; + SelText:= str.Text; + SelStart:=0; + SelEnd:=0; fModified := true; finally str.Free;