mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
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:
parent
d3dfc5424b
commit
3dd6e248af
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user