X Tutup
Skip to content

Commit d4f7c65

Browse files
fix persistant completion window AND paren highlighting
1 parent afca1da commit d4f7c65

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,7 @@ def on_enter(self, insert_into_history=True):
403403
self.rl_history.append(self.current_line)
404404
self.rl_history.last()
405405
self.history.append(self.current_line)
406-
line = self.current_line
407-
self.current_line = ''
408-
self.push(line, insert_into_history=insert_into_history)
406+
self.push(self.current_line, insert_into_history=insert_into_history)
409407

410408
def on_tab(self, back=False):
411409
"""Do something on tab key
@@ -567,6 +565,7 @@ def run_code_and_maybe_finish(self, for_code=None):
567565

568566
self.current_line = ' '*indent
569567
self.cursor_offset = len(self.current_line)
568+
self.update_completion()
570569

571570
def keyboard_interrupt(self):
572571
#TODO factor out the common cleanup from running a line

0 commit comments

Comments
 (0)
X Tutup