Fix bug #10902 with cursor positioning at EOB.