Fix bug where no (more) lines were loaded despite there being more
Move cursor to end when navigating history

Fixes #244
Merge pull request #245 from lorenzhs/historycursorpos

Move cursor to end when navigating history
Merge pull request #240 from lorenzhs/fetchlines

Fix bug where no (more) lines were loaded despite there being more