#NEWLINE# def on_deactivated( self , view ) : #NEWLINE# #INDENT# window = view . window ( ) #NEWLINE# if ( not window ) : #NEWLINE# #INDENT# window = sublime . active_window ( ) #NEWLINE# #UNINDENT# index = window . get_view_index ( view ) #NEWLINE# if ( index != ( ( - 1 ) , ( - 1 ) ) ) : #NEWLINE# #INDENT# self . save ( self , 'on_deactivated' )