Closed stevenhoneyman closed 8 years ago
This patch has unwanted side effects.
For instance:
$ yaourt -Qdt
extra/swig 3.0.8-1
==> Do you want to remove these packages (with -Rcs options) ? [y/N]
==> -----------------------------------------------------------------
==>
After applying your patch, all answers except N
trigger a removal.
Using pacman as an example, when you get asked a question that has a default answer; if you press Enter, it uses the default. If you press a random letter (e.g. accidently pressing M instead of N), it stops/exits, but Yaourt would instead just use the default. The patch below makes it behave like pacman - unhandled keys mean exit, but ENTER still uses default.