Skip to content

Commit 515142e

Browse files
committed
Merge branch 'sc/help-autocorrect-one' into jch
* sc/help-autocorrect-one: help: interpret help.autocorrect=1 as "immediate" rather than 0.1s
2 parents cd7b424 + 877a7f6 commit 515142e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ static int git_unknown_cmd_config(const char *var, const char *value,
568568
return config_error_nonbool(var);
569569
if (!strcmp(value, "never")) {
570570
cfg->autocorrect = AUTOCORRECT_NEVER;
571-
} else if (!strcmp(value, "immediate")) {
571+
} else if (!strcmp(value, "immediate") || !strcmp(value, "1")) {
572572
cfg->autocorrect = AUTOCORRECT_IMMEDIATELY;
573573
} else if (!strcmp(value, "prompt")) {
574574
cfg->autocorrect = AUTOCORRECT_PROMPT;

0 commit comments

Comments
 (0)