From 255cd93f44cf2fc3254eacade480d3c7f167cc6a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 29 Jul 2013 02:46:34 -0400 Subject: [PATCH] Don't blow up on fish shell Closes #166 --- ftplugin/ruby.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 9630a940..c160101d 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -83,9 +83,9 @@ function! s:query_path(root) let cwd = getcwd() try exe cd fnameescape(a:root) - let path = split(system(path_check),',') + silent! let path = split(system(path_check),',') exe cd fnameescape(cwd) - return path + return get(l:, 'path', '') finally exe cd fnameescape(cwd) endtry