mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 01:29:20 +02:00
MG: fixed method jumping, cursor pos after proc head
git-svn-id: trunk@642 -
This commit is contained in:
parent
14447d84f0
commit
dac3b9e0a0
@ -1342,7 +1342,7 @@ begin
|
||||
if ACleanPos>=1 then begin
|
||||
if ACleanPos<=SrcLen then begin
|
||||
// search line start
|
||||
ALineStart:=ACleanPos;
|
||||
ALineStart:=ACleanPos-1;
|
||||
while (ALineStart>=1) and (not (Src[ALineStart] in [#10,#13])) do
|
||||
dec(ALineStart);
|
||||
inc(ALineStart);
|
||||
|
@ -173,6 +173,12 @@ writeln('TMethodJumpingCodeTool.FindJumpPoint B');
|
||||
GetLineInfo(CleanCursorPos,LineStart,LineEnd,FirstAtomStart,LastAtomEnd);
|
||||
if CleanCursorPos<FirstAtomStart then CleanCursorPos:=FirstAtomStart;
|
||||
if CleanCursorPos>=LastAtomEnd then CleanCursorPos:=LastAtomEnd-1;
|
||||
if (CleanCursorPos<=SrcLen) and (Src[CleanCursorPos]=';') then begin
|
||||
MoveCursorToCleanPos(CleanCursorPos);
|
||||
ReadPriorAtom;
|
||||
if CurPos.StartPos>=FirstAtomStart then
|
||||
CleanCursorPos:=CurPos.StartPos;
|
||||
end;
|
||||
// find CodeTreeNode at cursor
|
||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||
{$IFDEF CTDEBUG}
|
||||
|
Loading…
Reference in New Issue
Block a user