Skip to content
Browse files

Correct version check for maparg ext, introducetd from Vim 7.3.32, #44.

  • Loading branch information...
1 parent b7ae7d0 commit 37076cb15f2e121003045d1a09736c78155fb62b @jiangmiao committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/auto-pairs.vim
View
2 plugin/auto-pairs.vim
@@ -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)

0 comments on commit 37076cb

Please sign in to comment.
Something went wrong with that request. Please try again.