Fixes #63, skip checking patch if the version is greater than 703.

This commit is contained in:
Miao Jiang 2013-10-20 10:11:05 +08:00
parent 062a5de551
commit c2f60ca2e5

View File

@ -421,7 +421,7 @@ function! AutoPairsInit()
if g:AutoPairsMapSpace
" Try to respect abbreviations on a <SPACE>
let do_abbrev = ""
if v:version >= 703 && has("patch489")
if v:version == 703 && has("patch489") || v:version > 703
let do_abbrev = "<C-]>"
endif
execute 'inoremap <buffer> <silent> <SPACE> '.do_abbrev.'<C-R>=AutoPairsSpace()<CR>'