Scroll to correct position when fetching more lines

Fixes #406