mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-21 20:18:48 +08:00
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:
parent
39f06b873a
commit
1c543c0bad
@ -671,3 +671,4 @@ imap <script> <Plug>AutoPairsReturn <SID>AutoPairsReturn
|
||||
|
||||
|
||||
au BufEnter * :call AutoPairsTryInit()
|
||||
call AutoPairsTryInit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user