mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 10:18:05 +02:00
IDE, Editor Macro Pascal: fix switching between macros, broken in c77c71b54e
(cherry picked from commit 81f3140a4b
)
This commit is contained in:
parent
2324992bb3
commit
8f51444869
@ -307,7 +307,13 @@ begin
|
||||
Exec.LoadDebugData(FCachedCompiledDbg);
|
||||
end
|
||||
else begin
|
||||
Exec.Cleanup;
|
||||
if FPrivateExec = nil then begin
|
||||
if not Exec.LoadData(FCachedCompiled) then // Load the data from the Data string.
|
||||
exit;
|
||||
Exec.LoadDebugData(FCachedCompiledDbg);
|
||||
end
|
||||
else
|
||||
Exec.Cleanup;
|
||||
end;
|
||||
|
||||
Exec.SynEdit := aEditor as TCustomSynEdit;
|
||||
|
Loading…
Reference in New Issue
Block a user