Closed Michael-Klassen closed 6 years ago
Fix in 0269d47e52c5e47bf57149c78887ab9cc33010c3 . Thanks for posting avery understandable bug report =)
@danielmagnussons - I installed the plugin yesterday and folded a javascript code and the fold persists. This user have a similar issue: https://github.com/danielmagnussons/orgmode/issues/74 This user too: Code is folded automatically on sublime start
In
orgmode_store.py
theOrgmodeStore
class doesn't work properly with folded code.If you fold a section of a file then close that file,
OrgmodeStore
will save the folds. If you then open a different file,OrgmodeStore
will restore the folds to that different file.The problem is caused by the fact that
OrgmodeStore
usesget_view_index
as the key but (at least after you close a tab)get_view_index
does not uniquely identify the file.