Codetools: Find declaration for a used unit also when caret is at its end. Issue #32606.

git-svn-id: trunk@56366 -
This commit is contained in:
juha 2017-11-11 16:06:39 +00:00
parent 24ea33059c
commit 55d8b5ed1a

View File

@ -2971,7 +2971,7 @@ begin
if CurPos.StartPos>CleanPos then break;
if CurPos.Flag=cafSemicolon then break;
ReadNextUsedUnit(UnitNamePos,UnitInFilePos);
if CleanPos<CurPos.StartPos then begin
if CleanPos<=CurPos.StartPos then begin
// cursor is on an used unit -> try to locate it
MoveCursorToCleanPos(UnitNamePos.StartPos);
ReadNextAtom;