File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ endfunction
197
197
198
198
" Find a nearest to a `path` parent directory `directoryname` by traversing the filesystem upwards
199
199
function ! lsp#utils#find_nearest_parent_directory (path , directoryname) abort
200
- let l: relative_path = finddir (a: directoryname , a: path . ' ;' )
200
+ let l: relative_path = finddir (a: directoryname , fnameescape ( a: path) . ' ;' )
201
201
202
202
if ! empty (l: relative_path )
203
203
return fnamemodify (l: relative_path , ' :p' )
@@ -208,7 +208,7 @@ endfunction
208
208
209
209
" Find a nearest to a `path` parent filename `filename` by traversing the filesystem upwards
210
210
function ! lsp#utils#find_nearest_parent_file (path , filename) abort
211
- let l: relative_path = findfile (a: filename , a: path . ' ;' )
211
+ let l: relative_path = findfile (a: filename , fnameescape ( a: path) . ' ;' )
212
212
213
213
if ! empty (l: relative_path )
214
214
return fnamemodify (l: relative_path , ' :p' )
You can’t perform that action at this time.
0 commit comments