gh-119553: Clear reader on Ctrl-C command (GH-119801)

This commit is contained in:
Lysandros Nikolaou 2024-06-04 19:46:33 +02:00 committed by GitHub
parent d419d468ff
commit 010ea93b2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 0 deletions

View file

@ -221,6 +221,7 @@ class interrupt(FinishCommand):
class ctrl_c(Command):
def do(self) -> None:
self.reader.finish()
raise KeyboardInterrupt