#NEWLINE# def get_visible_region( self ) : #NEWLINE# #INDENT# chunk_size = global_settings ( 'preview_chunk_size' , 10 ) #NEWLINE# file_size = self . view . size ( ) #NEWLINE# visible_region = self . view . visible_region ( ) #NEWLINE# visible_region . a = max ( ( visible_region . begin ( ) - chunk_size ) , 0 ) #NEWLINE# visible_region . b = min ( ( visible_region . end ( ) + chunk_size ) , file_size ) #NEWLINE# return visible_region