Handle case when diff folds are out of sync
Official development repository for Vim's builtin TOhtml plugin
Brought to you by:
fritzophrenic
Originally created by: fritzophrenic
Original report by Ben Fritz (Bitbucket: fritzophrenic NA, ).
If the windows in a diff have their folding out of sync (this can occur if the user uses :foldopen or :foldclose instead of normal mode commands to open/close folds) then TOhtml will create an HTML file mirroring this.
That’s probably OK, but what’s not OK is that dynamic folds will stay out of sync. Closing the open fold will open the corresponding closed fold in the other window and there is no way to force them into sync.