* fixed codecomplete when the word was already typed

This commit is contained in:
daniel 2000-01-24 12:00:38 +00:00
parent d0a230bd96
commit 36e3f595ce

View File

@ -25,7 +25,7 @@ begin
if OK then
begin
Text:=CodeCompleteWords^.Lookup(WordS,Index);
OK:=(Index<>-1);
OK:=(Index<>-1) and (length(Text)<>length(WordS));
end;
if OK=false then Text:='';
FPCompleteCodeWord:=OK;
@ -56,4 +56,4 @@ begin
CodeCompleteWords:=nil;
end;
END.
END.