From e6ccd734e5e292e8185a91f75c175a358dc41b02 Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 9 Jul 2024 01:55:55 -0700 Subject: [PATCH] yn_function() again The new impossible() was testing for a NUL response incorrectly. --- src/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index e4d68213c..3222dc833 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -5160,7 +5160,7 @@ yn_function( #endif /* should not happen but cq.key has been observed to not obey 'resp'; do this after dumplog has recorded the potentially bad value */ - if (!res || (resp && !strchr(resp, res))) { + if (resp && res && !strchr(resp, res)) { /* this probably needs refinement since caller is expecting something within 'resp' and ESC won't be (it could be present, but as a flag for unshown possibilities rather than as acceptable input) */