Merged revision(s) 56366 #55d8b5ed1a from trunk:

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

git-svn-id: branches/fixes_1_8@56422 -
This commit is contained in:
maxim 2017-11-16 22:38:45 +00:00
parent d3dfc5424b
commit 3dd6e248af

View File

@ -2920,7 +2920,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;