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)

(cherry picked from commit 696cf7c7b5)
This commit is contained in:
Martin 2025-02-09 22:10:15 +01:00
parent 155a6049ea
commit 751a5f4d98

View File

@ -1674,8 +1674,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;
@ -1708,8 +1708,6 @@ var
if (vscTabAtLast in FVisibleSpecialChars) and ((pl-1)^=' ') and (j < CWLen) then begin
(pl-1)^ := #194;
pl^ := #187; inc(pl);
if FetoBuf <> nil then FEtoBuf.EtoData[e] := c;
inc(e);
end;
end;
' ': begin