From 67cc7f6dc6fb30efc2a7846d8fefedc43f300084 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 26 Nov 2024 15:51:48 +0000 Subject: [PATCH] Enter is now sent from single prompt as \r not empty string. --- cmd-confirm-before.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c index fb42d431..af630b1e 100644 --- a/cmd-confirm-before.c +++ b/cmd-confirm-before.c @@ -130,7 +130,7 @@ cmd_confirm_before_callback(struct client *c, void *data, const char *s, if (s == NULL) 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; retcode = 0;