Fix bug #17244 with line-move-visual when display string covers a lot of text.