From 696cf7c7b5622af5c7f051ac1db4f9a7c431ed83 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 9 Feb 2025 22:10:15 +0100 Subject: [PATCH] SynEdit: fixed "DX" (ETO) values for visualized tabs. An extra value was inserted, shifting subsequent values by one (noticeable when "full-width" chars were on the same line) --- components/synedit/lazsyntextarea.pp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/synedit/lazsyntextarea.pp b/components/synedit/lazsyntextarea.pp index 4b1ef7b393..d2cd3fa276 100644 --- a/components/synedit/lazsyntextarea.pp +++ b/components/synedit/lazsyntextarea.pp @@ -1721,8 +1721,8 @@ var end else c := 0; - e := 0; + e := 0; // Copy to LineBuffer (and maybe FetoBuf if NeedExpansion then begin j := ATokenInfo.StartPos.Logical - 1; @@ -1757,8 +1757,6 @@ var then begin (pl-1)^ := #194; pl^ := #187; inc(pl); - if FetoBuf <> nil then FEtoBuf.EtoData[e] := c; - inc(e); end; end; ' ': begin