Explorar el Código

* fixed codecomplete when the word was already typed

daniel hace 26 años
padre
commit
36e3f595ce
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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.