mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 14:29:29 +02:00
SynEdit: fixed not drawing special chars (visible white space) past EOL. Introduced in refactor at rev 38621 #1db4cf5fe6
git-svn-id: trunk@38716 -
This commit is contained in:
parent
5a4fe6cb26
commit
0bfdc547f6
@ -1585,7 +1585,7 @@ var
|
||||
|
||||
case pt^ of
|
||||
#9: begin
|
||||
if (vscTabAtFirst in FVisibleSpecialChars) then begin
|
||||
if (vscTabAtFirst in FVisibleSpecialChars) and (j < CWLen) then begin
|
||||
pl^ := #194; inc(pl);
|
||||
pl^ := #187; inc(pl);
|
||||
dec(k);
|
||||
@ -1598,13 +1598,13 @@ var
|
||||
if eto <> nil then Eto.EtoData[e] := c;
|
||||
inc(e);
|
||||
end;
|
||||
if (vscTabAtLast in FVisibleSpecialChars) and ((pl-1)^=' ') then begin
|
||||
if (vscTabAtLast in FVisibleSpecialChars) and ((pl-1)^=' ') and (j < CWLen) then begin
|
||||
(pl-1)^ := #194;
|
||||
pl^ := #187; inc(pl);
|
||||
end;
|
||||
end;
|
||||
' ': begin
|
||||
if (vscSpace in FVisibleSpecialChars) then begin
|
||||
if (vscSpace in FVisibleSpecialChars) and (j < CWLen) then begin
|
||||
pl^ := #194; inc(pl);
|
||||
pl^ := #183; inc(pl);
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user