Mark each error in the line, then pick its matching margin mark.