I'm doing some Delphi / pascal at the moment and not being very experienced at it I probably do some unusual things. One thing I noticed was that with auto surround turned off, auto surround seems to fire up and go wrong in the following situation. The blank line before the line with arrows is empty, not even spaces on it. Put the cursor at the start of that line and press the spacebar and slick fires up something that looks like auto-surround with two new lines as below - there's a space after the "b". Happens in 21.0.3 as well.
b egin
end;
I don't care if you don't fix it, just letting you know.
procedure TFVoltageCurrent.BVoltageCurrentTestClick(Sender: TObject);
begin
end; // <<<<<<<<<<<<