mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 03:16:10 +02:00
EditorOptions/Mouse: Added more Fold Actions templates
(missed a file) git-svn-id: trunk@20414 -
This commit is contained in:
parent
0f7c792281
commit
c48d05bde9
@ -188,6 +188,25 @@ begin
|
||||
FFoldView.FoldAtTextIndex(Line-1, -1, 1, True);
|
||||
emcoCodeFoldCollapsAll:
|
||||
FFoldView.FoldAtTextIndex(Line-1, -1, 0);
|
||||
emcoCodeFoldCollapsAtCaret:
|
||||
begin
|
||||
i := FFoldView.LogicalPosToNodeIndex(Line-1, AnInfo.NewCaret.BytePos, False);
|
||||
if i >= 0 then
|
||||
FFoldView.FoldAtTextIndex(Line-1, i, 1, False)
|
||||
else
|
||||
Result := False;
|
||||
end;
|
||||
emcoCodeFoldCollapsPreCaret:
|
||||
begin
|
||||
i := FFoldView.LogicalPosToNodeIndex(Line-1, AnInfo.NewCaret.BytePos, True);
|
||||
if i >= 0 then
|
||||
FFoldView.FoldAtTextIndex(Line-1, i, 1, False)
|
||||
else begin
|
||||
i := FFoldView.ExpandedLineForBlockAtLine(Line);
|
||||
if i > 0 then
|
||||
FFoldView.FoldAtTextIndex(i-1, -1, 1, True);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
emcCodeFoldExpand:
|
||||
|
Loading…
Reference in New Issue
Block a user