Fix bug #17047 with cursor motion when invisible text starts a line.