Enter is now sent from single prompt as \r not empty string.

This commit is contained in:
nicm 2024-11-26 15:51:48 +00:00
parent 363f35f076
commit 67cc7f6dc6

View File

@ -130,7 +130,7 @@ cmd_confirm_before_callback(struct client *c, void *data, const char *s,
if (s == NULL) if (s == NULL)
goto out; goto out;
if (s[0] != cdata->confirm_key && (s[0] != '\0' || !cdata->default_yes)) if (s[0] != cdata->confirm_key && (s[0] != '\r' || !cdata->default_yes))
goto out; goto out;
retcode = 0; retcode = 0;