Browse Source

* fixed codecomplete when the word was already typed

daniel 25 years ago
parent
commit
36e3f595ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ide/text/fpcodcmp.pas

+ 2 - 2
ide/text/fpcodcmp.pas

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