Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Escape commas in the path used in findFileInParent
Browse files Browse the repository at this point in the history
findfile() appears to have some undocumented behaviour regarding
commands in the path string. So escape them when we escape spaces.

Closes #2109
  • Loading branch information
TBBle committed Nov 14, 2017
1 parent 206b616 commit 0293b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/syntastic/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0293b00

Please sign in to comment.