-
Notifications
You must be signed in to change notification settings - Fork 88
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
label-mode (Vim 7.4.791 or older): 'foldmethod' sometimes not restored #197
Labels
Comments
FWIW this shouldn't happen with Vim 7.4.792 or Nvim 0.2 since c2cbcf7 But it still needs to be fixed for older versions. |
justinmk
changed the title
Fix for #186 sometimes sets
'foldmethod' sometimes not restored (Vim 7.4.791 or older)
Aug 29, 2018
foldmethod
when it shouldn't
justinmk
changed the title
'foldmethod' sometimes not restored (Vim 7.4.791 or older)
label-mode (Vim 7.4.791 or older): 'foldmethod' sometimes not restored
Jan 31, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
When the fix for #186 acts (i.e. when sneak-streak is activated in a buffer that has
foldmethod=syntax
), it stores"syntax"
ins:fdm_orig
in thes:before()
function.This is unconditionally restored in
s:after()
so that any buffer where you run sneak-streak after this has happened will have itsfoldmethod
set to"syntax"
.repo:
I guess this could either be fixed by unconditionally setting
s:fdm_orig
to&l:foldmethod
ins:before()
or by putting a condition on settingfoldmethod
ins:after()
.The text was updated successfully, but these errors were encountered: