Fix error reporting during omnicomplete

Resolves: https://github.com/tpope/vim-rhubarb/issues/70
This commit is contained in:
Tim Pope
2022-07-08 04:16:12 -04:00
parent c815057f8e
commit 09b9b1ca86

View File

@@ -261,7 +261,7 @@ function! s:CompleteAddIssues(response, prefix) abort
if !has_key(a:response, 'message')
return
endif
throw 'rhubarb: ' . response.message
throw 'rhubarb: ' . a:response.message
endfunction
let s:reference = '\<\%(\c\%(clos\|resolv\|referenc\)e[sd]\=\|\cfix\%(e[sd]\)\=\)\>'