Fixed bug

Some plug-ins (such as tagbar) will be loaded before auto pairs, and these plug-ins will create buffers on their own. In this way, auto pairs will not get the BuffEnter event and will not execute AutoPairsTryInit()
I added call AutoPairsTryInit() in the last line, which means trying to initialize the plug-in at the first time to solve the problem.
This commit is contained in:
iTruth 2019-11-30 10:22:31 +08:00 committed by GitHub
parent 39f06b873a
commit 1c543c0bad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -671,3 +671,4 @@ imap <script> <Plug>AutoPairsReturn <SID>AutoPairsReturn
au BufEnter * :call AutoPairsTryInit()
call AutoPairsTryInit()