Fix bug #11261 with cursor movement in a continued line when header line is present.