Commit 55d8b5ed authored by Juha Manninen's avatar Juha Manninen
Browse files

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

git-svn-id: trunk@56366 -
parent 24ea3305
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment