We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d11652 + c151acc commit c727a3fCopy full SHA for c727a3f
autoload/denops/callback.vim
@@ -17,19 +17,18 @@ function! denops#callback#unregister(id) abort
17
if !has_key(s:registry, a:id)
18
return
19
endif
20
- silent unlet s:registry[a:id]
+ unlet s:registry[a:id]
21
endfunction
22
23
function! denops#callback#call(id, ...) abort
24
25
throw printf('No callback function for %s exist', a:id)
26
27
let l:entry = s:registry[a:id]
28
- let l:ret = call(l:entry.callback, a:000)
29
if l:entry.options.once
30
- call denops#callback#unregister(a:id)
31
32
- return l:ret
+ return call(l:entry.callback, a:000)
33
34
35
function! denops#callback#clear() abort
0 commit comments