ソースを参照

Similarity returns smaller values for more similar strings (yuck!), fix inverted logic due to that.

git-svn-id: file:///var/svn/tigccpp/trunk@862 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 18 年 前
コミット
68ae1ed036
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tigcc/ide/CodeCompletion/CompletionForm.pas

+ 1 - 1
tigcc/ide/CodeCompletion/CompletionForm.pas

@@ -340,7 +340,7 @@ begin
 			end
 			else
 			begin
-				if Similarity(Symbol, List[i - 1]) > Similarity(Symbol, List[i]) then
+				if Similarity(Symbol, List[i - 1]) < Similarity(Symbol, List[i]) then
 					Dec(i);
 				if Similar(Symbol, List[i]) then
 					T := List[i] + ' ?'#13#10