Improved cursor newline movement to deal with spilling words onto newline.