Skip to content

Commit

Permalink
Fix Ctrl+C to break multiline REPL statements (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
niftytyro authored Oct 19, 2021
1 parent 3081410 commit ac0eb5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ac0eb5e

Please sign in to comment.