diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-05 09:53:49 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-05 09:53:49 +0200 |
commit | bf188c4a51a6d151bb2694d73048727f4359c634 (patch) | |
tree | 3059e2f946ae6293e1809d67393fddced1197431 /ftplugin/ruby.vim | |
parent | a5857b81c215139b3c0def78e5bd2f1da8a17af6 (diff) | |
download | vim-polyglot-bf188c4a51a6d151bb2694d73048727f4359c634.tar.gz vim-polyglot-bf188c4a51a6d151bb2694d73048727f4359c634.zip |
Updatev2.11.1
Diffstat (limited to 'ftplugin/ruby.vim')
-rw-r--r-- | ftplugin/ruby.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 786bb7c8..1969658d 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -77,20 +77,20 @@ function! s:query_path(root) abort let prefix = '' endif if &shellxquote == "'" - let path_check = prefix.'ruby -e "' . code . '"' + let path_check = prefix.'ruby -e --disable-gems"' . code . '"' else - let path_check = prefix."ruby -e '" . code . "'" + let path_check = prefix."ruby -e --disable-gems'" . code . "'" endif let cd = haslocaldir() ? 'lcd' : 'cd' - let cwd = getcwd() + let cwd = fnameescape(getcwd()) try exe cd fnameescape(a:root) let path = split(system(path_check),',') - exe cd fnameescape(cwd) + exe cd cwd return path finally - exe cd fnameescape(cwd) + exe cd cwd endtry endfunction |