Fix bug when fold pattern occurs in the last line at a column > 1