REPL now scrolls to the end of the document whenever new content is added at the end.