replaces the lines with lines, like a list that is built again: the log stays scrolled as far from the end it keeps in view, see anchor, as far as there are lines; the selection is cleared