From 5d65980c42da3eb2c7f1431e15c3e2bf7d340c61 Mon Sep 17 00:00:00 2001 From: Lukas Galke Date: Thu, 30 Nov 2017 00:33:13 +0100 Subject: [PATCH] fnameescape when searching nearest file --- autoload/ale/path.vim | 1 + 1 file changed, 1 insertion(+) 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 . ';')