mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-10-05 13:36:58 +08:00
Correct version check for maparg ext, introducetd from Vim 7.3.32, #44.
This commit is contained in:
@ -467,7 +467,7 @@ function! AutoPairsTryInit()
|
||||
" Buffer level keys mapping
|
||||
" comptible with other plugin
|
||||
if g:AutoPairsMapCR
|
||||
if v:version >= 703
|
||||
if v:version >= 703 && has('patch32')
|
||||
" VIM 7.3 supports advancer maparg which could get <expr> info
|
||||
" then auto-pairs could remap <CR> in any case.
|
||||
let info = maparg('<CR>', 'i', 0, 1)
|
||||
|
Reference in New Issue
Block a user