New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep SessionLoadPost autocmd intact #25
Conversation
Thanks for the PR, but stay already fires the If that event did not fire for you, you might have stumbled on a bug in the plugin logic. In that case, I would ask you to help me track that exact bug by providing me with a way to reproduce it – introducing a user setting to compromise between integration or a performance penalty would be my very last resort. |
Well, this is with
and I did not notice it with older versions. Maybe you can reproduce it with the latest Vim and FastFold as well? |
Perhaps |
See,
here gives |
Ok, also b:stay_loaded_view is not defined. |
Yes of course it does, the syntax is wrong in your test. Could you report what :echo exists('#SessionLoadPost') returns on your system? That is what is actually tested in the line you linked to: the second |
OK, |
Viewdir is ~/.cache/vim/view and eventignore empty |
Well it is ... /view// and the stridx function returns -1. Adapting the if clause to check for - 1 solves everything. |
Not really, as it subverts the check for “file is sourced from |
Other plugins, such as FastFold, rely on the triggering of the
SessionLoadPost
autocmd afterloadview
. Therefore this pull request proposes to(Without the SessionLoadPost autocmd, FastFold does not switch to manual folding which makes editing large files with syntax or expr folding slow.)