added history to identifier completion

git-svn-id: trunk@3023 -
This commit is contained in:
mattias 2002-08-18 08:57:06 +00:00
parent a1795e6ca2
commit 9aff51930b

View File

@ -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: