fix(messages): add a trailing space to inputlist() etc. prompts (#32328)

Before #31525 the prompts had a trailing space.
Also add a test for #7857.
This commit is contained in:
zeertzjq
2025-02-05 11:36:01 +08:00
committed by GitHub
parent 1deb580977
commit aa976f0d93
3 changed files with 99 additions and 23 deletions

View File

@@ -159,9 +159,9 @@ int prompt_for_input(char *prompt, int hl_id, bool one_key, bool *mouse_used)
if (prompt == NULL) {
if (mouse_used != NULL) {
prompt = _("Type number and <Enter> or click with the mouse (q or empty cancels):");
prompt = _("Type number and <Enter> or click with the mouse (q or empty cancels): ");
} else {
prompt = _("Type number and <Enter> (q or empty cancels):");
prompt = _("Type number and <Enter> (q or empty cancels): ");
}
}