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

fix bug when using with unite #2

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

Conversation

987poiuytrewq
Copy link

When using the g:AutoPairsUseInsertedCount option with unite, auto-pairs crashes with the error:

Error detected while processing function <SNR>53_AutoPairsInsCntReset:
line    2:
E121: Undefined variable: b:autopairs_ins_cnt

This is when you leave insert mode from a unite buffer. I think this is because the unite buffer starts in insert mode, so the count doesn't get set.

This pull request checks if the count is set, defaulting to zero.

Is this the right place to put this pull request, or should it go in @dimonomid's repo https://github.com/dimonomid/auto-pairs-gentle ?

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