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
This commit is contained in:
commit
a165484047
2
help.c
2
help.c
@ -643,7 +643,7 @@ const char *help_unknown_cmd(const char *cmd)
|
||||
else if (autocorrect == AUTOCORRECT_PROMPT) {
|
||||
char *answer;
|
||||
struct strbuf msg = STRBUF_INIT;
|
||||
strbuf_addf(&msg, _("Run '%s' instead? (y/N)"), assumed);
|
||||
strbuf_addf(&msg, _("Run '%s' instead [y/N]? "), assumed);
|
||||
answer = git_prompt(msg.buf, PROMPT_ECHO);
|
||||
strbuf_release(&msg);
|
||||
if (!(starts_with(answer, "y") ||
|
||||
|
Loading…
Reference in New Issue
Block a user