When I’m editing a long file and fold some functions, after making a commit and returning to Sublime, all folded functions are open again. Committing is the one case that triggers the problem reliably, but there might be other ways to interact with the file outside Sublime that would have the same effect.
Does anybody know whether there is an easy way to stop this from happening, i.e. to make sure all folds stay closed?