Parcourir la source

Update levenshtein costs

Tatsuhiro Tsujikawa il y a 1 an
Parent
commit
1a4cb1d070
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()) {