mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 09:19:40 +02: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
|
||||
i: Integer;
|
||||
begin
|
||||
i:=Stack.Top+FindStackPosForBlockCloseAtPos;
|
||||
i:=FindStackPosForBlockCloseAtPos;
|
||||
if (i>=0) and (i<=Stack.Top) then
|
||||
Result:=Stack.Stack[i].Typ
|
||||
else
|
||||
@ -1272,7 +1272,7 @@ function TFullyAutomaticBeautifier.FindStackPosForBlockCloseAtPos(
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
i:=Stack.Top+FindStackPosForBlockCloseAtPos;
|
||||
i:=FindStackPosForBlockCloseAtPos;
|
||||
Result:=(StackTopType in bbtAllProcedures)
|
||||
and (i>0)
|
||||
and (Stack.Stack[i-1].Typ=bbtClassSection);
|
||||
@ -1290,7 +1290,7 @@ function TFullyAutomaticBeautifier.FindStackPosForBlockCloseAtPos(
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
i:=Stack.Top+FindStackPosForBlockCloseAtPos;
|
||||
i:=FindStackPosForBlockCloseAtPos;
|
||||
if i>=0 then
|
||||
EndBlock(i+1);
|
||||
end;
|
||||
|
@ -540,9 +540,10 @@ var
|
||||
begin
|
||||
if not (ssLeft in Shift) then begin
|
||||
// no left mouse button => stop showing insert mark
|
||||
if tvoAutoInsertMark in ItemsTreeView.Options then
|
||||
DebugLn(['TExternHelpGeneralOptsFrame.ItemsTreeViewMouseMove no left']);
|
||||
ItemsTreeView.Options:=ItemsTreeView.Options-[tvoAutoInsertMark];
|
||||
FDragNode:=nil;
|
||||
DebugLn(['TExternHelpGeneralOptsFrame.ItemsTreeViewMouseMove no left']);
|
||||
end else if (not ItemsTreeView.Dragging) then begin
|
||||
// left mouse button is presses and not yet dragging => start dragging
|
||||
TVNode:=ItemsTreeView.GetNodeAt(X,Y);
|
||||
|
Loading…
Reference in New Issue
Block a user