Skip to content

Disable fold-updates during snippet-expansion.#12

Open
manasthakur wants to merge 1 commit into
tckmn:masterfrom
manasthakur:folding
Open

Disable fold-updates during snippet-expansion.#12
manasthakur wants to merge 1 commit into
tckmn:masterfrom
manasthakur:folding

Conversation

@manasthakur
Copy link
Copy Markdown

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