We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a453c02 commit 077a837Copy full SHA for 077a837
bpython/curtsiesfrontend/repl.py
@@ -1038,7 +1038,7 @@ def send_session_to_external_editor(self, filename=None):
1038
current_line = lines[-1][4:]
1039
else:
1040
current_line = ""
1041
- from_editor = [line for line in lines if line[:6] != "# OUT:"]
+ from_editor = [line for line in lines if line[:6] != "# OUT:" and line[:3] != "###"]
1042
if all(not line.strip() for line in from_editor):
1043
self.status_bar.message(
1044
_("Session not reevaluated because saved file was blank")
bpython/repl.py
@@ -835,7 +835,7 @@ def process():
835
yield line
836
elif line.rstrip():
837
yield "# OUT: %s" % line
838
- yield "###: %s" % self.current_line
+ yield "### %s" % self.current_line
839
840
return "\n".join(process())
841
0 commit comments