History scrolling now works with the new linked-list system for lines.