input: Fix history line reading regression
commitf9af463600b1025e7e14914c9fcde972a2be991e
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Apr 2024 09:11:02 +0000 (27 17:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 4 May 2024 04:44:26 +0000 (4 12:44 +0800)
tree45b08b56488f866cd98a4c413b24918e2b351f51
parent509f5b0dcd710804fb6c66750c7c7fd2d30a3ec9
input: Fix history line reading regression

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