diff options
author | Lukas Galke <git@lpag.de> | 2017-11-30 00:33:13 +0100 |
---|---|---|
committer | Lukas Galke <git@lpag.de> | 2017-11-30 00:33:13 +0100 |
commit | 5d65980c42da3eb2c7f1431e15c3e2bf7d340c61 (patch) | |
tree | baf95d46088dd413948171597c8774ebef02ebeb | |
parent | 6503b85d3d0f01d8fa74f8024fda8d6fe0d62274 (diff) | |
download | ale-5d65980c42da3eb2c7f1431e15c3e2bf7d340c61.zip |
fnameescape when searching nearest file
-rw-r--r-- | autoload/ale/path.vim | 1 |
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 . ';') |