#NEWLINE# def vi_accept_line( self , e ) : #NEWLINE# #INDENT# if ( self . _vi_command and e . _vi_command . is_search ) : #NEWLINE# #INDENT# self . _vi_command . do_search ( ) #NEWLINE# return False #NEWLINE# #UNINDENT# self . _vi_command = None #NEWLINE# self . vi_set_insert_mode ( True ) #NEWLINE# self . _vi_undo_stack = [ ] #NEWLINE# self . _vi_undo_cursor = ( - 1 ) #NEWLINE# self . _vi_current = None #NEWLINE# if self . l_buffer . line_buffer : #NEWLINE# #INDENT# self . add_history ( self . l_buffer . copy ( ) ) #NEWLINE# #UNINDENT# return self . accept_line ( e )