#NEWLINE# def key_star( self , char ) : #NEWLINE# #INDENT# self . is_star = True #NEWLINE# self . is_edit = True #NEWLINE# self . readline . vi_save_line ( ) #NEWLINE# completions = self . readline . _get_completions ( ) #NEWLINE# if completions : #NEWLINE# #INDENT# text = ( ' ' . join ( completions ) + ' ' ) #NEWLINE# self . readline . l_buffer . line_buffer [ self . readline . begidx : ( self . readline . endidx + 1 ) ] = list ( text ) #NEWLINE# prefix_len = ( self . readline . endidx - self . readline . begidx ) #NEWLINE# self . readline . l_buffer . point += ( len ( text ) - prefix_len ) #NEWLINE# self . readline . vi_set_insert_mode ( True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . error ( ) #NEWLINE# #UNINDENT# self . state = _VI_TEXT