Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make fold levels be buffer local. #419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

algmyr
Copy link

@algmyr algmyr commented Jan 20, 2025

Without this I had behavior where doing SignifyFold! on a second buffer would change the fold regions of the first buffer. With the fix things were independent as they should be.

autoload/sy/fold.vim Outdated Show resolved Hide resolved
Without this I had behavior where doing `SignifyFold!` on a second
buffer would change the fold regions of the first buffer. With the
fix things were independent as they should be.
@algmyr algmyr force-pushed the fold_levels_local branch from ff00690 to 18657eb Compare January 20, 2025 22:28
@algmyr
Copy link
Author

algmyr commented Jan 20, 2025

Updated the code to not use script variables for context0 and context1, not sure why they were used rather than just keeping them local and passing them as variables.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant