summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Galke <git@lpag.de>2017-11-30 00:33:13 +0100
committerLukas Galke <git@lpag.de>2017-11-30 00:33:13 +0100
commit5d65980c42da3eb2c7f1431e15c3e2bf7d340c61 (patch)
treebaf95d46088dd413948171597c8774ebef02ebeb
parent6503b85d3d0f01d8fa74f8024fda8d6fe0d62274 (diff)
downloadale-5d65980c42da3eb2c7f1431e15c3e2bf7d340c61.zip
fnameescape when searching nearest file
-rw-r--r--autoload/ale/path.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim
index bca0fe81..5fd6cef2 100644
--- a/autoload/ale/path.vim
+++ b/autoload/ale/path.vim
@@ -31,6 +31,7 @@ endfunction
" through the paths relative to the given buffer.
function! ale#path#FindNearestFile(buffer, filename) abort
let l:buffer_filename = fnamemodify(bufname(a:buffer), ':p')
+ let l:buffer_filename = fnameescape(l:buffer_filename)
let l:relative_path = findfile(a:filename, l:buffer_filename . ';')