Skip to content

Commit bdc846c

Browse files
committed
Fix issue returning from editor
1 parent 012ea90 commit bdc846c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ def send_session_to_external_editor(self, filename=None):
10261026
current_line = lines[-1][4:]
10271027
else:
10281028
current_line = ""
1029-
from_editor = [line for line in lines if line[:6] != "# OUT:"]
1029+
from_editor = [line for line in lines if line[:6] != "# OUT:" and line[:3] != "###"]
10301030
if all(not line.strip() for line in from_editor):
10311031
self.status_bar.message(
10321032
_("Session not reevaluated because saved file was blank")

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ def process():
835835
yield line
836836
elif line.rstrip():
837837
yield "# OUT: %s" % line
838-
yield "###: %s" % self.current_line
838+
yield "### %s" % self.current_line
839839

840840
return "\n".join(process())
841841

0 commit comments

Comments
 (0)