From 6c529de83c561d15ccd7c79fb0c8c3e96d1adbc7 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 6 Aug 2018 11:05:37 -0400 Subject: [PATCH] Don't error on omnicomplete in non-GitHub repository Closes https://github.com/tpope/vim-rhubarb/issues/30 --- autoload/rhubarb.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index dc5604c..5bec4e0 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -214,6 +214,8 @@ function! rhubarb#omnifunc(findstart,base) abort endif return map(issues, '{"word": prefix.v:val.number, "abbr": "#".v:val.number, "menu": v:val.title, "info": substitute(v:val.body,"\\r","","g")}') endif + catch /^rhubarb:.*is not a GitHub repository/ + return [] catch /^\%(fugitive\|rhubarb\):/ echoerr v:errmsg endtry