

def delete_current_entry(self):
    if ((not self.current_selected_index) or (self.current_selected_index < 0)):
        return
    closed_len = len(self.history_list['closed'])
    if (self.current_selected_index < closed_len):
        key = 'closed'
    else:
        self.current_selected_index -= closed_len
        key = 'opened'
    if (self.current_selected_index <= len(self.history_list[key])):
        del self.history_list[key][self.current_selected_index]

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py OpenRecentlyClosedFileCommand.delete_current_entry/original