Escape the filename for finddir

This commit is contained in:
w0rp 2017-11-30 10:25:32 +00:00
parent c977bb2d05
commit fd261264d7

View File

@ -46,6 +46,7 @@ endfunction
" through the paths relative to the given buffer.
function! ale#path#FindNearestDirectory(buffer, directory_name) abort
let l:buffer_filename = fnamemodify(bufname(a:buffer), ':p')
let l:buffer_filename = fnameescape(l:buffer_filename)
let l:relative_path = finddir(a:directory_name, l:buffer_filename . ';')