mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Don't error on omnicomplete in non-GitHub repository
Closes https://github.com/tpope/vim-rhubarb/issues/30
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user