Skip to content

Commit a165484

Browse files
committed
Merge branch 'km/help-prompt-fix'
Among some code paths that ask an yes/no question, only one place gave a prompt that looked different from the others, which has been updated to match what the others create. * km/help-prompt-fix: help: make auto-correction prompt more consistent
2 parents d9fc3a9 + 0fc8ed1 commit a165484

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
@@ -643,7 +643,7 @@ const char *help_unknown_cmd(const char *cmd)
643643
else if (autocorrect == AUTOCORRECT_PROMPT) {
644644
char *answer;
645645
struct strbuf msg = STRBUF_INIT;
646-
strbuf_addf(&msg, _("Run '%s' instead? (y/N)"), assumed);
646+
strbuf_addf(&msg, _("Run '%s' instead [y/N]? "), assumed);
647647
answer = git_prompt(msg.buf, PROMPT_ECHO);
648648
strbuf_release(&msg);
649649
if (!(starts_with(answer, "y") ||

0 commit comments

Comments
 (0)