config: write to $XDG_CONFIG_HOME/git/config file when appropriate
[gitweb.git] / help.c
diff --git a/help.c b/help.c
index 69d483d8d3b7e109345b1e8124df6b023ed312fb..662349dd56fd31d2ea2635657887640f43ce947c 100644 (file)
--- a/help.c
+++ b/help.c
@@ -6,6 +6,7 @@
 #include "common-cmds.h"
 #include "string-list.h"
 #include "column.h"
+#include "version.h"
 
 void add_cmdname(struct cmdnames *cmds, const char *name, int len)
 {
@@ -317,7 +318,7 @@ const char *help_unknown_cmd(const char *cmd)
                }
 
                main_cmds.names[i]->len =
-                       levenshtein(cmd, candidate, 0, 2, 1, 4) + 1;
+                       levenshtein(cmd, candidate, 0, 2, 1, 3) + 1;
        }
 
        qsort(main_cmds.names, main_cmds.cnt,