| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 366def6 commit b1bcdca
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -86,8 +86,14 @@ endfunction | |||
| 86 | 86 | ||
| 87 | 87 | function! s:build_path(path) abort | |
| 88 | 88 | let path = join(map(copy(a:path), 'v:val ==# "." ? "" : v:val'), ',') | |
| 89 | - if &g:path !~# '\v^%(\.,)=%(/%(usr|emx)/include,)=,$' | ||
| 90 | - let path = substitute(&g:path,',,$',',','') . ',' . path | ||
| 89 | + if &g:path =~# '\v^%(\.,)=%(/%(usr|emx)/include,)=,$' | ||
| 90 | + let path = path . ',.,,' | ||
| 91 | + elseif &g:path =~# ',\.,,$' | ||
| 92 | + let path = &g:path[0:-4] . path . ',.,,' | ||
| 93 | + elseif &g:path =~# ',,$' | ||
| 94 | + let path = &g:path[0:-2] . path . ',,' | ||
| 95 | + else | ||
| 96 | + let path = substitute(&g:path, '[^,]\zs$', ',', '') . path | ||
| 91 | 97 | endif | |
| 92 | 98 | return path | |
| 93 | 99 | endfunction | |
| Back | FazBrowse Home | New Git URL |
0 commit comments