

def quick_open_preview(self, window):
    "Open the file that is currently being previewed\n        Returns true if 'refresh' state should be cleared later."
    if (not self.current_history_entry):
        return
    view = self.current_view
    other_view = self.get_view_from_another_group(window, view.file_name())
    if self.is_transient_view(window, view):
        if ((not self.REOPEN_IN_CURRENT_GROUP) and other_view):
            self.debug(('Focussing existing view in group %d' % window.get_view_index(other_view)[0]))
            self.__close_preview(window)
            window.focus_view(other_view)
            return True
        else:
            (group, index) = self.__calculate_view_index(window, self.current_history_entry)
            view = window.open_file(self.current_history_entry['filename'])
            window.set_view_index(view, group, index)
    self.__clear_context()
    self.__track_calling_view(window)

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