Message ID | ZizBJhvmuy/8Fx5r@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | input: Fix history line reading regression | expand |
diff --git a/src/input.c b/src/input.c index 38969a7..fb9858f 100644 --- a/src/input.c +++ b/src/input.c @@ -301,7 +301,7 @@ again: switch (c) { case '\n': parsefile->nleft = q - parsefile->nextc - 1; - goto check; + goto done; default: something = 1; @@ -320,6 +320,7 @@ check: break; } } +done: input_set_lleft(parsefile, more); if (!IS_DEFINED_SMALL)
When a newline is encountered with history support, terminate the loop immediately. Fixes: 44ae22beedf8 ("input: Disable lleft in SMALL mode") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> --- src/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)