mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 08:00:24 +02:00
IDE: method jumping: fixed using logicalcaret
git-svn-id: trunk@15412 -
This commit is contained in:
parent
56f181b65c
commit
52afc922a8
@ -12014,15 +12014,16 @@ var ActiveSrcEdit: TSourceEditor;
|
||||
NewSource: TCodeBuffer;
|
||||
NewX, NewY, NewTopLine: integer;
|
||||
RevertableJump: boolean;
|
||||
LogCaret: TPoint;
|
||||
begin
|
||||
if not BeginCodeTool(ActiveSrcEdit,ActiveUnitInfo,[]) then exit;
|
||||
{$IFDEF IDE_DEBUG}
|
||||
writeln('');
|
||||
writeln('[TMainIDE.DoJumpToProcedureSection] ************');
|
||||
{$ENDIF}
|
||||
LogCaret:=ActiveSrcEdit.EditorComponent.LogicalCaretXY;
|
||||
if CodeToolBoss.JumpToMethod(ActiveUnitInfo.Source,
|
||||
ActiveSrcEdit.EditorComponent.CaretX,
|
||||
ActiveSrcEdit.EditorComponent.CaretY,
|
||||
LogCaret.X,LogCaret.Y,
|
||||
NewSource,NewX,NewY,NewTopLine,RevertableJump) then
|
||||
begin
|
||||
DoJumpToCodePos(ActiveSrcEdit, ActiveUnitInfo,
|
||||
|
Loading…
Reference in New Issue
Block a user