#NEWLINE# def on_hash_selection( self , index ) : #NEWLINE# #INDENT# options_array = [ 'Show commit' , 'Compare commit against working directory' , 'Compare commit against index' ] #NEWLINE# if self . _log_current_file : #NEWLINE# #INDENT# options_array . append ( 'Show file at commit' ) #NEWLINE# #UNINDENT# if ( index == ( - 1 ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( index == self . _limit ) : #NEWLINE# #INDENT# self . _pagination += self . _limit #NEWLINE# sublime . set_timeout_async ( ( lambda : self . run_async ( ) ) , 1 ) #NEWLINE# return #NEWLINE# #UNINDENT# self . _selected_hash = options_array . _hashes [ index ] #NEWLINE# self . window . show_quick_panel ( options_array , self . on_output_selection , flags = sublime . MONOSPACE_FONT , selected_index = self . quick_panel_log_idx )