This is really annoying me too. I don't think I have the skill to patch it, so if someone can do this I would be eternally grateful. Not only does it fold, but when you unfold, the previous cursor position seems to be lost. Suggested configurable behaviour: fold_on = click | dblclick | none