'Reopens the last closed tab.'

def open_last_closed(self):

    editorstack = self.get_current_editorstack()
    last_closed_files = editorstack.get_last_closed_files()
    if (len(last_closed_files) > 0):
        file_to_open = last_closed_files[0]
        last_closed_files.remove(file_to_open)
        editorstack.set_last_closed_files(last_closed_files)
        self.load(file_to_open)
