terminal: always reset terminal when reading without echo
commit24d7ce383a3d92feae6a641499448fde43206fd8
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 22 Feb 2022 18:53:32 +0000 (22 18:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Feb 2022 21:30:06 +0000 (23 13:30 -0800)
treeec832b5aa257ea774768cb8bdded64966d99030a
parentb80121027d1247a0754b3cc46897fee75c050b44
terminal: always reset terminal when reading without echo

Break out of the loop to ensure restore_term() is called before
returning.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/terminal.c