mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 02:49:06 +02:00
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:
parent
24ea33059c
commit
55d8b5ed1a
@ -2971,7 +2971,7 @@ begin
|
|||||||
if CurPos.StartPos>CleanPos then break;
|
if CurPos.StartPos>CleanPos then break;
|
||||||
if CurPos.Flag=cafSemicolon then break;
|
if CurPos.Flag=cafSemicolon then break;
|
||||||
ReadNextUsedUnit(UnitNamePos,UnitInFilePos);
|
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
|
// cursor is on an used unit -> try to locate it
|
||||||
MoveCursorToCleanPos(UnitNamePos.StartPos);
|
MoveCursorToCleanPos(UnitNamePos.StartPos);
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
|
Loading…
Reference in New Issue
Block a user