'Move to the end of the input history, i.e., the line currently
being entered.'

def end_of_history(self, current):

    self.history_cursor = len(self.history)
    current.set_line(self.history[(-1)].get_line_text())
