Skip to content

Commit 077a837

Browse files
rybarczykjthomasballinger
authored andcommitted
Fix issue returning from editor
1 parent a453c02 commit 077a837

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
@@ -1038,7 +1038,7 @@ def send_session_to_external_editor(self, filename=None):
10381038
current_line = lines[-1][4:]
10391039
else:
10401040
current_line = ""
1041-
from_editor = [line for line in lines if line[:6] != "# OUT:"]
1041+
from_editor = [line for line in lines if line[:6] != "# OUT:" and line[:3] != "###"]
10421042
if all(not line.strip() for line in from_editor):
10431043
self.status_bar.message(
10441044
_("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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy