mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-07 12:44:27 +08:00
Fix throw in issues completion
Closes https://github.com/tpope/vim-rhubarb/issues/23
This commit is contained in:
@@ -204,7 +204,7 @@ function! rhubarb#omnifunc(findstart,base) abort
|
|||||||
if type(response) != type({})
|
if type(response) != type({})
|
||||||
call s:throw('unknown error')
|
call s:throw('unknown error')
|
||||||
elseif has_key(response, 'message')
|
elseif has_key(response, 'message')
|
||||||
call s:throw(response[message])
|
call s:throw(response.message)
|
||||||
else
|
else
|
||||||
let issues = get(response, 'items', [])
|
let issues = get(response, 'items', [])
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user