Skip to content

Commit 255cd93

Browse files
committed
Don't blow up on fish shell
Closes #166
1 parent f4c550e commit 255cd93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ftplugin/ruby.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ function! s:query_path(root)
8383
let cwd = getcwd()
8484
try
8585
exe cd fnameescape(a:root)
86-
let path = split(system(path_check),',')
86+
silent! let path = split(system(path_check),',')
8787
exe cd fnameescape(cwd)
88-
return path
88+
return get(l:, 'path', '')
8989
finally
9090
exe cd fnameescape(cwd)
9191
endtry

0 commit comments

Comments
 (0)