Skip to content

Commit

Permalink
Correct version check for maparg ext, introducetd from Vim 7.3.32, #44.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangmiao committed Mar 27, 2013
1 parent b7ae7d0 commit 37076cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/auto-pairs.vim
Expand Up @@ -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)
Expand Down

0 comments on commit 37076cb

Please sign in to comment.