Permalink
Browse files

fixed incorrect parameters to ruby interpreter when setting &path. (#306

)
  • Loading branch information...
1 parent e667558 commit 7764bf05e9ec59101d7a5844ad01e5a84d001407 @datanoise datanoise committed with tpope Aug 13, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 ftplugin/ruby.vim
View
@@ -75,9 +75,9 @@ function! s:query_path(root) abort
let prefix = ''
endif
if &shellxquote == "'"
- let path_check = prefix.'ruby -e --disable-gems"' . code . '"'
+ let path_check = prefix.'ruby --disable-gems -e "' . code . '"'
else
- let path_check = prefix."ruby -e --disable-gems'" . code . "'"
+ let path_check = prefix."ruby --disable-gems -e '" . code . "'"
endif
let cd = haslocaldir() ? 'lcd' : 'cd'

0 comments on commit 7764bf0

Please sign in to comment.