Skip to content
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

Disable fold-updates during snippet-expansion. #12

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

Disable fold-updates during snippet-expansion. #12

wants to merge 1 commit into from

Conversation

manasthakur
Copy link

In the existing scheme, if the snippet being expanded matches the foldmethod set by the user (e.g., expr), the snippet may get folded while the user is filling the placeholders.

This PR solves the issue by temporarily setting the foldmethod to manual during snippet-expansion, and then restoring it back to the value set by the user.

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

Successfully merging this pull request may close these issues.

1 participant