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:
martin 2009-07-19 13:15:55 +00:00
parent 9f69aa1518
commit 277398c12c

View File

@ -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;