{"action":"created","issue":{"url":"https://api.github.com/repos/Konfekt/FastFold/issues/16","labels_url":"https://api.github.com/repos/Konfekt/FastFold/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Konfekt/FastFold/issues/16/comments","events_url":"https://api.github.com/repos/Konfekt/FastFold/issues/16/events","html_url":"https://github.com/Konfekt/FastFold/issues/16","id":64416271,"number":16,"title":"On first edit, default foldmethod is lost.","user":{"login":"Parakleta","id":11205202,"avatar_url":"https://avatars.githubusercontent.com/u/11205202?v=3","gravatar_id":"","url":"https://api.github.com/users/Parakleta","html_url":"https://github.com/Parakleta","followers_url":"https://api.github.com/users/Parakleta/followers","following_url":"https://api.github.com/users/Parakleta/following{/other_user}","gists_url":"https://api.github.com/users/Parakleta/gists{/gist_id}","starred_url":"https://api.github.com/users/Parakleta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Parakleta/subscriptions","organizations_url":"https://api.github.com/users/Parakleta/orgs","repos_url":"https://api.github.com/users/Parakleta/repos","events_url":"https://api.github.com/users/Parakleta/events{/privacy}","received_events_url":"https://api.github.com/users/Parakleta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-26T01:51:29Z","updated_at":"2015-03-26T19:12:38Z","closed_at":null,"body":"When I edit a file for the first time (i.e. no view information is available) FastFold is not preserving the global (default) foldmethod.\r\n\r\nThe sequence that goes wrong seems to be that somehow `Enter` is running twice, and on the first run it stores the default foldmethod (syntax in my case) correctly in `w:lastfdm` and sets the local foldmethod to manual, but then on the second run because the local foldmethod is now manual it is deciding that the file is no longer 'reasonable' and so unlets the `w:lastfdm` value which was holding the default of syntax.\r\n\r\nThis autocommand stuff hurts my head so I have no suggestion for what might fix this issue."},"comment":{"url":"https://api.github.com/repos/Konfekt/FastFold/issues/comments/86675592","html_url":"https://github.com/Konfekt/FastFold/issues/16#issuecomment-86675592","issue_url":"https://api.github.com/repos/Konfekt/FastFold/issues/16","id":86675592,"user":{"login":"kopischke","id":80906,"avatar_url":"https://avatars.githubusercontent.com/u/80906?v=3","gravatar_id":"","url":"https://api.github.com/users/kopischke","html_url":"https://github.com/kopischke","followers_url":"https://api.github.com/users/kopischke/followers","following_url":"https://api.github.com/users/kopischke/following{/other_user}","gists_url":"https://api.github.com/users/kopischke/gists{/gist_id}","starred_url":"https://api.github.com/users/kopischke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopischke/subscriptions","organizations_url":"https://api.github.com/users/kopischke/orgs","repos_url":"https://api.github.com/users/kopischke/repos","events_url":"https://api.github.com/users/kopischke/events{/privacy}","received_events_url":"https://api.github.com/users/kopischke/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T19:12:38Z","updated_at":"2015-03-26T19:12:38Z","body":"> the problem is that *vim-stay* issues a SessionLoadPost autocmd where FastFold does not expect it, namely when there was no view info loaded. That causes `s:Enter()` to be called twice, on the second time with `fdm=manual`.\r\n\r\n@Konfekt do I understand correctly thar the problem would go away if SessionLoadPost was only fired by *vim-stay* when an actual view session file has been loaded?"}}