From bf3e1c789337f65575fb2e2c6969e080e16e8c3c Mon Sep 17 00:00:00 2001 From: Anya Date: Tue, 21 Dec 2021 14:26:28 +0000 Subject: [PATCH] Return immediately when quit is seen When a quit character is seen, immediately return that command, as it is the correct operation to perform in this case. A bigger fix is needed here, in that we need to have a *queue* of operations to perform, rather than a single one --- text-utils/more.c | 1 + 1 file changed, 1 insertion(+) diff --git a/text-utils/more.c b/text-utils/more.c index 7460221630..f1f6d38f78 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -894,6 +894,7 @@ static struct number_command read_command(struct more_control *ctl) case 'q': case 'Q': cmd.key = more_kc_quit; + return cmd; break; case 'f': case CTRL('F'): -- 2.47.3