Improve cursor positioning. Reword and document the implementation.