File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments