#NEWLINE# def panel_done( self , index ) : #NEWLINE# #INDENT# if ( index > ( - 1 ) ) : #NEWLINE# #INDENT# self . view . replace ( self . edit , self . view . sel ( ) [ 0 ] , ( history [ index ] + '\n' ) )