Correct placement of cursors when not scrolling

This fixes #1304.

@devoncarew