mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:29:28 +02:00
codetools: class completion: fixed adding behind variable lists, bug #13368
git-svn-id: trunk@19589 -
This commit is contained in:
parent
4757739e38
commit
09148347e9
@ -5022,6 +5022,16 @@ begin
|
|||||||
|
|
||||||
if InsertNode<>nil then begin
|
if InsertNode<>nil then begin
|
||||||
|
|
||||||
|
// for variable lists: a,b,c: integer
|
||||||
|
// use last node
|
||||||
|
if InsertBehind then begin
|
||||||
|
while (InsertNode.Desc=ctnVarDefinition)
|
||||||
|
and (InsertNode.FirstChild=nil)
|
||||||
|
and (InsertNode.NextBrother<>nil)
|
||||||
|
and (InsertNode.NextBrother.Desc=ctnVarDefinition) do
|
||||||
|
InsertNode:=InsertNode.NextBrother;
|
||||||
|
end;
|
||||||
|
|
||||||
if (not IsVariable) and (InsertNode.Desc=ctnVarDefinition)
|
if (not IsVariable) and (InsertNode.Desc=ctnVarDefinition)
|
||||||
and (InsertNode.NextBrother<>nil) then begin
|
and (InsertNode.NextBrother<>nil) then begin
|
||||||
// insertion is a new method and it should be inserted behind
|
// insertion is a new method and it should be inserted behind
|
||||||
|
Loading…
Reference in New Issue
Block a user