[Lazarus] Is there a bug in auto indentation in 1.4 or is it just me?

Bernd prof7bit at gmail.com
Wed Jul 8 11:51:55 CEST 2015


if I write the following code:

procedure foo;
begin
  if true then
  begin
    X
  end
  else
  begin
      X
  end;
end;

The "x" marks the place where it puts my cursor after hitting enter.
After the the if then begin it will correctly place me 2 spaces
indented relative to the begin, but after the end else begin it will
place me 4 spaces relative to the begin.

I cannot find any way to influence this behavior in the editor
settings (which are very confusing btw), I cannot even change anything
at all there, even if I set everything to 4 spaces instead of 2 it
will still use 2 spaces everywhere (and 4 in an else begin branch).

Is this just me or is this a bug in the 1.4 release?

Bernd




More information about the Lazarus mailing list