diff --git a/src/ce_editor.pas b/src/ce_editor.pas index c39d4a11..d45f0b5a 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -296,10 +296,12 @@ end; procedure TCEEditorWidget.focusedEditorChanged; begin + macRecorder.Clear; + fSyncEdit.Clear; if fDoc = nil then exit; // - macRecorder.Editor := fDoc; - fSyncEdit.Editor := fDoc; + macRecorder.Editor:= fDoc; + fSyncEdit.Editor := fDoc; completion.Editor := fDoc; if (pageControl.ActivePage.Caption = '') then begin