Escape commas in the path used in findFileInParent
findfile() appears to have some undocumented behaviour regarding commands in the path string. So escape them when we escape spaces. Closes #2109
This commit is contained in:
parent
206b616c8e
commit
0293b00176
@ -253,7 +253,7 @@ endfunction " }}}2
|
||||
function! syntastic#util#findFileInParent(what, where) abort " {{{2
|
||||
let old_suffixesadd = &suffixesadd
|
||||
let &suffixesadd = ''
|
||||
let file = findfile(a:what, escape(a:where, ' ') . ';')
|
||||
let file = findfile(a:what, escape(a:where, ' ,') . ';')
|
||||
let &suffixesadd = old_suffixesadd
|
||||
return file
|
||||
endfunction " }}}2
|
||||
|
Loading…
x
Reference in New Issue
Block a user