mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-11-29 14:43:13 +08:00
Fixes #63, skip checking patch if the version is greater than 703.
This commit is contained in:
@ -421,7 +421,7 @@ function! AutoPairsInit()
|
|||||||
if g:AutoPairsMapSpace
|
if g:AutoPairsMapSpace
|
||||||
" Try to respect abbreviations on a <SPACE>
|
" Try to respect abbreviations on a <SPACE>
|
||||||
let do_abbrev = ""
|
let do_abbrev = ""
|
||||||
if v:version >= 703 && has("patch489")
|
if v:version == 703 && has("patch489") || v:version > 703
|
||||||
let do_abbrev = "<C-]>"
|
let do_abbrev = "<C-]>"
|
||||||
endif
|
endif
|
||||||
execute 'inoremap <buffer> <silent> <SPACE> '.do_abbrev.'<C-R>=AutoPairsSpace()<CR>'
|
execute 'inoremap <buffer> <silent> <SPACE> '.do_abbrev.'<C-R>=AutoPairsSpace()<CR>'
|
||||||
|
|||||||
Reference in New Issue
Block a user