瀏覽代碼

Update levenshtein costs

Tatsuhiro Tsujikawa 1 年之前
父節點
當前提交
1a4cb1d070
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/option_processing.cc

+ 1 - 1
src/option_processing.cc

@@ -148,7 +148,7 @@ void showCandidates(const std::string& unknownOption,
       continue;
     }
     // cost values are borrowed from git, help.c.
-    int sim = levenshtein(optstr, pref->k, 0, 2, 1, 4);
+    int sim = levenshtein(optstr, pref->k, 0, 2, 1, 3);
     cands.push_back(std::make_pair(sim, pref));
   }
   if (cands.empty()) {