We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f64705 commit 99c10caCopy full SHA for 99c10ca
bpython/curtsiesfrontend/repl.py
@@ -848,9 +848,12 @@ def send_to_external_editor(self, filename=None):
848
for line in text.split('\n')).encode('utf8'))
849
temp.flush()
850
subprocess.call(editor_args + [temp.name])
851
- self.history = [line for line in open(temp.name).read().split('\n')
+ lines = open(temp.name).read().split('\n')
852
+ self.history = [line for line in lines
853
if line[:4] != '### ']
854
self.reevaluate(insert_into_history=True)
855
+ self._current_line = lines[-1][4:]
856
+ self.cursor_offset_in_line = len(self._current_line)
857
858
def simple_repl():
859
refreshes = []
0 commit comments