This commit is contained in:
Adam Stankiewicz
2019-09-06 14:25:42 +02:00
parent ae18284e5a
commit 66b769328c
5 changed files with 39 additions and 16 deletions

View File

@@ -90,7 +90,7 @@ endfunction
function! s:build_path(path) abort
let path = join(map(copy(a:path), 'v:val ==# "." ? "" : v:val'), ',')
if &g:path !~# '\v^\.%(,/%(usr|emx)/include)=,,$'
if &g:path !~# '\v^%(\.,)=%(/%(usr|emx)/include,)=,$'
let path = substitute(&g:path,',,$',',','') . ',' . path
endif
return path