Escape the filename for finddir
This commit is contained in:
parent
c977bb2d05
commit
fd261264d7
1 changed files with 1 additions and 0 deletions
|
@ -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 . ';')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue