Apply multiline candidates

close #1