Correct version check for maparg ext, introducetd from Vim 7.3.32, #44.
This commit is contained in:
parent
b7ae7d0ba8
commit
37076cb15f
@ -467,7 +467,7 @@ function! AutoPairsTryInit()
|
|||||||
" Buffer level keys mapping
|
" Buffer level keys mapping
|
||||||
" comptible with other plugin
|
" comptible with other plugin
|
||||||
if g:AutoPairsMapCR
|
if g:AutoPairsMapCR
|
||||||
if v:version >= 703
|
if v:version >= 703 && has('patch32')
|
||||||
" VIM 7.3 supports advancer maparg which could get <expr> info
|
" VIM 7.3 supports advancer maparg which could get <expr> info
|
||||||
" then auto-pairs could remap <CR> in any case.
|
" then auto-pairs could remap <CR> in any case.
|
||||||
let info = maparg('<CR>', 'i', 0, 1)
|
let info = maparg('<CR>', 'i', 0, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user