In tasks with length restriction and several lines, when a new line is deleted and then inserted again adjacent to the deleted one, the first one will not be treated as deletion. Then the length restriction calculation will incorrectly count one line too many.