From fd261264d7020699d76ed2f6eecd9800ef5f5b9f Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 30 Nov 2017 10:25:32 +0000 Subject: [PATCH] Escape the filename for finddir --- autoload/ale/path.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim index 5fd6cef..57e607a 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 . ';')