diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim index 5fd6cef2..57e607a5 100644 --- a/autoload/ale/path.vim +++ b/autoload/ale/path.vim @@ -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 . ';')