Skip to content

fix bug when using with unite#2

Open
987poiuytrewq wants to merge 1 commit into
eapache:masterfrom
987poiuytrewq:master
Open

fix bug when using with unite#2
987poiuytrewq wants to merge 1 commit into
eapache:masterfrom
987poiuytrewq:master

Conversation

@987poiuytrewq

Copy link
Copy Markdown

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