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:
Paul "TBBle" Hampson 2017-11-14 21:06:17 +11:00
parent 206b616c8e
commit 0293b00176

View File

@ -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