#NEWLINE# def redraw_debug_focus( self ) : #NEWLINE# #INDENT# self . v . erase_regions ( ENSIME_DEBUGFOCUS_REGION ) #NEWLINE# if self . v . is_loading ( ) : #NEWLINE# #INDENT# sublime . set_timeout ( self . redraw_debug_focus , 100 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . env and self . env . focus and same_paths ( self . env . focus . file_name , self . v . file_name ( ) ) ) : #NEWLINE# #INDENT# focused_region = self . v . full_line ( self . v . text_point ( ( self . env . focus . line - 1 ) , 0 ) ) #NEWLINE# self . v . add_regions ( ENSIME_DEBUGFOCUS_REGION , [ focused_region ] , self . env . settings . get ( 'debugfocus_scope' ) , self . env . settings . get ( 'debugfocus_icon' ) ) #NEWLINE# w = ( self . v . window ( ) or sublime . active_window ( ) ) #NEWLINE# w . focus_view ( self . v ) #NEWLINE# self . redraw_breakpoints ( ) #NEWLINE# sublime . set_timeout ( bind ( w . _scroll_viewport , self . v , focused_region ) , 0 )