From: Anya Date: Tue, 21 Dec 2021 14:26:28 +0000 (+0000) Subject: Return immediately when quit is seen X-Git-Tag: v2.38-rc1~62^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf3e1c789337f65575fb2e2c6969e080e16e8c3c;p=thirdparty%2Futil-linux.git 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 --- 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'):