mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-29 05:37:20 +01: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);
|
writeln(DebugPrefix,'TFindDeclarationTool.FindDeclaration C CleanCursorPos=',CleanCursorPos);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
// find CodeTreeNode at cursor
|
// find CodeTreeNode at cursor
|
||||||
if (Tree.Root<>nil) and (Tree.Root.StartPos<CleanCursorPos) then
|
if (Tree.Root<>nil) and (Tree.Root.StartPos<=CleanCursorPos) then begin
|
||||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true)
|
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||||
else begin
|
CleanPosInFront:=CursorNode.StartPos;
|
||||||
|
end else begin
|
||||||
CleanPosInFront:=1;
|
CleanPosInFront:=1;
|
||||||
CursorNode:=nil;
|
CursorNode:=nil;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -302,6 +302,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{------------------------------------------------------------------------------
|
||||||
|
procedure TApplication.StopHintTimer;
|
||||||
|
------------------------------------------------------------------------------}
|
||||||
procedure TApplication.StopHintTimer;
|
procedure TApplication.StopHintTimer;
|
||||||
begin
|
begin
|
||||||
if FHintTimer<>nil then
|
if FHintTimer<>nil then
|
||||||
@ -311,7 +314,6 @@ end;
|
|||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
procedure TApplication.NotifyIdleHandler;
|
procedure TApplication.NotifyIdleHandler;
|
||||||
|
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
procedure TApplication.NotifyIdleHandler;
|
procedure TApplication.NotifyIdleHandler;
|
||||||
var
|
var
|
||||||
@ -834,6 +836,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 1.41 2002/02/09 01:48:23 mattias
|
||||||
renamed TinterfaceObject.Init to AppInit and TWinControls can now contain childs in gtk
|
renamed TinterfaceObject.Init to AppInit and TWinControls can now contain childs in gtk
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user