mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-07 12:49:29 +01:00
codetools: fixed line indenter unindent for next token
git-svn-id: trunk@23830 -
This commit is contained in:
parent
efa3daf8eb
commit
d131d2469d
@ -1239,7 +1239,7 @@ function TFullyAutomaticBeautifier.FindStackPosForBlockCloseAtPos(
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
i:=Stack.Top+FindStackPosForBlockCloseAtPos;
|
i:=FindStackPosForBlockCloseAtPos;
|
||||||
if (i>=0) and (i<=Stack.Top) then
|
if (i>=0) and (i<=Stack.Top) then
|
||||||
Result:=Stack.Stack[i].Typ
|
Result:=Stack.Stack[i].Typ
|
||||||
else
|
else
|
||||||
@ -1272,7 +1272,7 @@ function TFullyAutomaticBeautifier.FindStackPosForBlockCloseAtPos(
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
i:=Stack.Top+FindStackPosForBlockCloseAtPos;
|
i:=FindStackPosForBlockCloseAtPos;
|
||||||
Result:=(StackTopType in bbtAllProcedures)
|
Result:=(StackTopType in bbtAllProcedures)
|
||||||
and (i>0)
|
and (i>0)
|
||||||
and (Stack.Stack[i-1].Typ=bbtClassSection);
|
and (Stack.Stack[i-1].Typ=bbtClassSection);
|
||||||
@ -1290,7 +1290,7 @@ function TFullyAutomaticBeautifier.FindStackPosForBlockCloseAtPos(
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
i:=Stack.Top+FindStackPosForBlockCloseAtPos;
|
i:=FindStackPosForBlockCloseAtPos;
|
||||||
if i>=0 then
|
if i>=0 then
|
||||||
EndBlock(i+1);
|
EndBlock(i+1);
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -540,9 +540,10 @@ var
|
|||||||
begin
|
begin
|
||||||
if not (ssLeft in Shift) then begin
|
if not (ssLeft in Shift) then begin
|
||||||
// no left mouse button => stop showing insert mark
|
// no left mouse button => stop showing insert mark
|
||||||
|
if tvoAutoInsertMark in ItemsTreeView.Options then
|
||||||
|
DebugLn(['TExternHelpGeneralOptsFrame.ItemsTreeViewMouseMove no left']);
|
||||||
ItemsTreeView.Options:=ItemsTreeView.Options-[tvoAutoInsertMark];
|
ItemsTreeView.Options:=ItemsTreeView.Options-[tvoAutoInsertMark];
|
||||||
FDragNode:=nil;
|
FDragNode:=nil;
|
||||||
DebugLn(['TExternHelpGeneralOptsFrame.ItemsTreeViewMouseMove no left']);
|
|
||||||
end else if (not ItemsTreeView.Dragging) then begin
|
end else if (not ItemsTreeView.Dragging) then begin
|
||||||
// left mouse button is presses and not yet dragging => start dragging
|
// left mouse button is presses and not yet dragging => start dragging
|
||||||
TVNode:=ItemsTreeView.GetNodeAt(X,Y);
|
TVNode:=ItemsTreeView.GetNodeAt(X,Y);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user