Fix #101, no matchparen fallback when $VIM is in ~

This commit is contained in:
Andy K. Massimino
2020-07-02 21:33:20 -04:00
parent 24c17f94e0
commit 13dab02119

View File

@@ -70,7 +70,8 @@ function! s:pi_paren_sid() " {{{1
let s:pi_paren_sid = 0
if get(g:, 'loaded_matchparen')
let l:pat = '\%#=1\V'.expand('$VIM').'\m.\+matchparen\.vim$'
let l:pat = '\%#=1\V' . fnamemodify(expand('$VIM'), ':~')
\ . '\m.\+matchparen\.vim$'
if v:version >= 800
" execute() was added in 7.4.2008
" :filter was introduced in 7.4.2244 but I have not tested it there