#NEWLINE# def show_filtered_lines( self , edit , lines ) : #NEWLINE# #INDENT# results_view = self . view . window ( ) . new_file ( ) #NEWLINE# results_view . set_name ( 'Filter Results' ) #NEWLINE# results_view . set_scratch ( True ) #NEWLINE# results_view . settings ( ) . set ( 'word_wrap' , self . view . settings ( ) . get ( 'word_wrap' ) ) #NEWLINE# if self . invert_search : #NEWLINE# #INDENT# source_lines = self . view . lines ( sublime . Region ( 0 , self . view . size ( ) ) ) #NEWLINE# filtered_line_numbers = [ self . view . rowcol ( line . begin ( ) ) [ 0 ] for ( line , _ ) in lines ] #NEWLINE# for line_number in reversed ( filtered_line_numbers ) : #NEWLINE# #INDENT# del results_view [ line_number ] #NEWLINE# #UNINDENT# text = '' #NEWLINE# for line in source_lines : #NEWLINE# #INDENT# text += self . prepare_output_line ( line , None ) #NEWLINE# #UNINDENT# results_view . run_command ( 'append' , { #NEWLINE# #INDENT# 'characters' : text , #NEWLINE# 'force' : True , #NEWLINE# 'scroll_to_end' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# text = '' #NEWLINE# for ( line , matches ) in lines : #NEWLINE# #INDENT# text += self . prepare_output_line ( line , matches ) #NEWLINE# #UNINDENT# results_view . run_command ( 'append' , { #NEWLINE# #INDENT# 'characters' : text , #NEWLINE# 'force' : True , #NEWLINE# 'scroll_to_end' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# results_view . set_syntax_file ( self . view . settings ( ) . get ( 'syntax' ) )