mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-02 20:51:11 +01:00
codetools: fixed GetIdentStartEndAtPosition if pos behind source
git-svn-id: trunk@56197 -
This commit is contained in:
parent
444f0dd6f1
commit
a64605ceec
@ -1828,7 +1828,7 @@ begin
|
||||
inc(IdentStart);
|
||||
if (IdentStart>1) and (Source[IdentStart-1]='&') then
|
||||
dec(IdentStart);
|
||||
if not IsIdentStartChar[Source[IdentStart]] then
|
||||
if (IdentStart>length(Source)) or not IsIdentStartChar[Source[IdentStart]] then
|
||||
IdentEnd:=IdentStart;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user