mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 15:52:49 +02:00
fixed find declaration of non comment pos
git-svn-id: trunk@3708 -
This commit is contained in:
parent
41a97ec751
commit
41a4c638d3
@ -882,9 +882,10 @@ begin
|
||||
writeln(DebugPrefix,'TFindDeclarationTool.FindDeclaration C CleanCursorPos=',CleanCursorPos);
|
||||
{$ENDIF}
|
||||
// find CodeTreeNode at cursor
|
||||
if (Tree.Root<>nil) and (Tree.Root.StartPos<CleanCursorPos) then
|
||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true)
|
||||
else begin
|
||||
if (Tree.Root<>nil) and (Tree.Root.StartPos<=CleanCursorPos) then begin
|
||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||
CleanPosInFront:=CursorNode.StartPos;
|
||||
end else begin
|
||||
CleanPosInFront:=1;
|
||||
CursorNode:=nil;
|
||||
end;
|
||||
|
@ -302,6 +302,9 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure TApplication.StopHintTimer;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TApplication.StopHintTimer;
|
||||
begin
|
||||
if FHintTimer<>nil then
|
||||
@ -311,7 +314,6 @@ end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure TApplication.NotifyIdleHandler;
|
||||
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TApplication.NotifyIdleHandler;
|
||||
var
|
||||
@ -834,6 +836,9 @@ end;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.42 2002/12/17 11:56:09 mattias
|
||||
fixed find declaration of non comment pos
|
||||
|
||||
Revision 1.41 2002/02/09 01:48:23 mattias
|
||||
renamed TinterfaceObject.Init to AppInit and TWinControls can now contain childs in gtk
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user