From 3f343fe634f771548e71c5b1f265839906476f3c Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 8 Feb 2019 11:37:20 +0100 Subject: [PATCH] fix #444 - Wrong indentation at level 0 --- src/u_synmemo.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/u_synmemo.pas b/src/u_synmemo.pas index e8604087..cb1396e8 100644 --- a/src/u_synmemo.pas +++ b/src/u_synmemo.pas @@ -1731,7 +1731,8 @@ begin end; end; - result += 1 + tabCount + spcCount div TabWidth; + result += tabCount + spcCount div TabWidth; + result += Byte((result > 0) or (b <> 0)); end; procedure TDexedMemo.curlyBraceCloseAndIndent(close: boolean = true);