Force preview to scroll to the end

This one has been bugging me for a while!

This commit is done on top of the refactor - will rebase it / fix up the PR once I've merged the refactor code, I just wanted to ship this before Midnight :grin: 

fixes #958

- If the cursor is within the last 5 lines, then scroll to the end of the preview window, rather than using a ratio