#NEWLINE# def vi_search( self , rng ) : #NEWLINE# #INDENT# for i in rng : #NEWLINE# #INDENT# line_history = self . _history . history [ i ] #NEWLINE# pos = line_history . get_line_text ( ) . find ( self . _vi_search_text ) #NEWLINE# if ( rng >= 0 ) : #NEWLINE# #INDENT# self . _vi_search_position = i #NEWLINE# self . _history . history_cursor = i #NEWLINE# self . l_buffer . line_buffer = list ( line_history . line_buffer ) #NEWLINE# self . l_buffer . point = pos #NEWLINE# self . vi_undo_restart ( ) #NEWLINE# return True #NEWLINE# #UNINDENT# #UNINDENT# self . _bell ( ) #NEWLINE# return False