mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 20:24:29 +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
|
endif
|
||||||
return map(issues, '{"word": prefix.v:val.number, "abbr": "#".v:val.number, "menu": v:val.title, "info": substitute(v:val.body,"\\r","","g")}')
|
return map(issues, '{"word": prefix.v:val.number, "abbr": "#".v:val.number, "menu": v:val.title, "info": substitute(v:val.body,"\\r","","g")}')
|
||||||
endif
|
endif
|
||||||
|
catch /^rhubarb:.*is not a GitHub repository/
|
||||||
|
return []
|
||||||
catch /^\%(fugitive\|rhubarb\):/
|
catch /^\%(fugitive\|rhubarb\):/
|
||||||
echoerr v:errmsg
|
echoerr v:errmsg
|
||||||
endtry
|
endtry
|
||||||
|
|||||||
Reference in New Issue
Block a user