#NEWLINE# def vi_search_first( self ) : #NEWLINE# #INDENT# text = '' . join ( self . l_buffer . line_buffer [ 1 : ] ) #NEWLINE# if text : #NEWLINE# #INDENT# self . _vi_search_text = text #NEWLINE# self . _vi_search_position = ( len ( self . _history . history ) - 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . _vi_search_text : #NEWLINE# #INDENT# self . _vi_search_position -= 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . vi_error ( ) #NEWLINE# self . vi_undo ( ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# if ( not self . vi_search ( list ( range ( self . _vi_search_position , ( - 1 ) , ( - 1 ) ) ) ) ) : #NEWLINE# #INDENT# self . vi_undo ( )