

def open_history(self, window, history_entry):
    'Open the file represented by the history_entry in the provided window'
    self.__track_calling_view(window)
    (group, index) = self.__calculate_view_index(window, history_entry)
    if ((not self.REOPEN_IN_CURRENT_GROUP) or (not hasattr(sublime, 'FORCE_GROUP'))):
        self.__close_preview(window)
        new_view = window.open_file(history_entry['filename'])
        window.set_view_index(new_view, group, index)
        self.debug(('Opened file in group %s, index %s (based on saved group %s, index %s): %s' % (group, index, history_entry['group'], history_entry['index'], history_entry['filename'])))
    else:
        window.open_file(history_entry['filename'], sublime.FORCE_GROUP)
        self.debug(('Opened clone of file in current group: %s' % history_entry['filename']))
    self.__clear_context()

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.open_history/original