mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 11:40:29 +02:00
added history to identifier completion
git-svn-id: trunk@3023 -
This commit is contained in:
parent
a1795e6ca2
commit
9aff51930b
@ -2303,9 +2303,16 @@ var
|
||||
Begin
|
||||
if CurCompletionControl=nil then exit;
|
||||
case CurrentCompletionType of
|
||||
|
||||
ctIdentCompletion:
|
||||
begin
|
||||
// add to history
|
||||
CodeToolBoss.IdentifierHistory.Add(
|
||||
CodeToolBoss.IdentifierList.FilteredItems[aCompletion.Position]);
|
||||
NewValue:=GetIdentCompletionValue(aCompletion,ValueType);
|
||||
|
||||
// ToDo: check if there is no @ in front and no bracket behind
|
||||
|
||||
case ValueType of
|
||||
icvProcWithParams:
|
||||
NewValue:=NewValue+'()';
|
||||
@ -2321,9 +2328,6 @@ Begin
|
||||
end;
|
||||
ccSelection := '';
|
||||
Value:='';
|
||||
|
||||
// ToDo: add to history
|
||||
|
||||
end;
|
||||
|
||||
ctTemplateCompletion:
|
||||
|
Loading…
Reference in New Issue
Block a user