We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c10ca commit ef7234aCopy full SHA for ef7234a
bpython/curtsiesfrontend/repl.py
@@ -288,7 +288,8 @@ def process_event(self, e):
288
elif e in key_dispatch[self.config.suspend_key]: #TODO
289
raise SystemExit()
290
elif e in ("",) + key_dispatch[self.config.exit_key]:
291
- raise SystemExit()
+ if self._current_line == '':
292
+ raise SystemExit()
293
elif e in ("\n", "\r", "PAD_ENTER"):
294
self.on_enter()
295
self.update_completion()
0 commit comments