(WIP) addresses issue #38 where line folds are lost when document is refreshed  programmatically (e.g. through git).