From 9303f5dc57ad9cf7580d6ed355020b9762f1aff0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 25 Feb 2017 06:06:14 -0500 Subject: [PATCH] Fix bug in capture. --- sst.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sst.py b/sst.py index 2cc711b..cef7b8f 100755 --- a/sst.py +++ b/sst.py @@ -2148,7 +2148,7 @@ def capture(): return # big surprise, he refuses to surrender */ - prout(_("Fat chance, captain!")) + prout(_("Fat chance, captain!")) # Code from events.c begins here. @@ -3483,7 +3483,11 @@ def cgetline(): elif linein[0] != "#": break else: - linein = my_input() + "\n" + try: + linein = my_input() + "\n" + except EOFError: + prout("") + sys.exit(0) if logfp: logfp.write(linein) return linein -- 2.31.1