mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-09 03:37:20 +01:00
IDE: Simplify code in GetIdentCompletionValue a little.
This commit is contained in:
parent
f67149d196
commit
2a179b8402
@ -974,12 +974,9 @@ begin
|
||||
or ((ilcfStartInStatement in IdentList.ContextFlags) and (Dsc=ctnProcedure))
|
||||
then begin
|
||||
Result+=';';
|
||||
if (CursorToLeft=0) and (Dsc=ctnProcedure) and (not IdentItem.IsFunction) then
|
||||
begin
|
||||
// a procedure call without parameters => put cursor behind semicolon
|
||||
end else begin
|
||||
if (CursorToLeft>0) or (Dsc<>ctnProcedure) or IdentItem.IsFunction then
|
||||
inc(CursorToLeft); // keep cursor in front of semicolon
|
||||
end;
|
||||
// otherwise a procedure call without parameters, cursor stays behind semicolon
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user