From ac0eb5ea10015e32260b10b96b54d2ae57baff56 Mon Sep 17 00:00:00 2001 From: Udasi Tharani <56196911+udasitharani@users.noreply.github.com> Date: Tue, 19 Oct 2021 20:34:43 +0530 Subject: [PATCH] Fix Ctrl+C to break multiline REPL statements (#40) --- zx.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zx.py b/zx.py index 4230bd5..dc0949f 100644 --- a/zx.py +++ b/zx.py @@ -279,6 +279,9 @@ def install() -> None: new_input = input(prompt) except KeyboardInterrupt: print() + if continued_command: + continued_command = False + command = "" continue except EOFError: print()