mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 04:29:25 +02:00
SynEdit, Code-Templates: fixed remove double semicolon (or end of token). regression from rev 20732 #d6b3aff8c9. Fix issue #14161
git-svn-id: trunk@20898 -
This commit is contained in:
parent
9f69aa1518
commit
277398c12c
@ -441,7 +441,10 @@ begin
|
||||
if (AEditor.BlockEnd.Y>0) and (AEditor.BlockEnd.Y<=AEditor.Lines.Count)
|
||||
then begin
|
||||
LineText:=AEditor.Lines[AEditor.BlockEnd.Y-1];
|
||||
i := pos(LineText[AEditor.BlockEnd.X], EndOfTokenChr);
|
||||
if AEditor.BlockEnd.X <= length(LineText) then
|
||||
i := pos(LineText[AEditor.BlockEnd.X], EndOfTokenChr)
|
||||
else
|
||||
i := -1;
|
||||
if i > 0 then
|
||||
Parser.TrimEOTChar(EndOfTokenChr[i]);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user