mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 02:10:08 +02:00
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:
parent
155a6049ea
commit
751a5f4d98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user