Skip to content

Commit 7764bf0

Browse files
datanoisetpope
authored andcommitted
fixed incorrect parameters to ruby interpreter when setting &path. (#306)
1 parent e667558 commit 7764bf0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ftplugin/ruby.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ function! s:query_path(root) abort
7575
let prefix = ''
7676
endif
7777
if &shellxquote == "'"
78-
let path_check = prefix.'ruby -e --disable-gems"' . code . '"'
78+
let path_check = prefix.'ruby --disable-gems -e "' . code . '"'
7979
else
80-
let path_check = prefix."ruby -e --disable-gems'" . code . "'"
80+
let path_check = prefix."ruby --disable-gems -e '" . code . "'"
8181
endif
8282

8383
let cd = haslocaldir() ? 'lcd' : 'cd'

0 commit comments

Comments
 (0)