summaryrefslogtreecommitdiffstats
path: root/ftplugin/ruby.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/ruby.vim')
-rw-r--r--ftplugin/ruby.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim
index cc97760a..4edbbad6 100644
--- a/ftplugin/ruby.vim
+++ b/ftplugin/ruby.vim
@@ -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