Skip to content

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 vim-syntastic#2109
  • Loading branch information
TBBle committed Nov 14, 2017
1 parent d0e3ac4 commit e36e6e8
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 e36e6e8

Please sign in to comment.