From bf188c4a51a6d151bb2694d73048727f4359c634 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 5 Jul 2016 09:53:49 +0200 Subject: Update --- ftplugin/ruby.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ftplugin/ruby.vim') 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 -- cgit v1.2.3