'Overloaded to update top history with the removed lines.'

def index(self):

    (top, bottom) = self.margins
    if (self.cursor.y == bottom):
        self.history.top.append(self.buffer[top])
    super(HistoryScreen, self).index()
