Fix deleting more lines when folding is enabled

I use folding by default. When I try to save using this plugin, it deletes more lines than it should.
It was because my VIM regards a folding as single line when delete lines.
I found that opening all foldings before update original buffer fixes this issue.