Fix the line-resizing bug in scroll(). (Thanks to RDB for pointing