Skip to content

Commit

Permalink
fix: Fix not to throw error when callback id does not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Dec 14, 2024
1 parent f15345e commit 53b92b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/elin/callback.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ endfunction

function! elin#callback#call(id, ...) abort
if !has_key(s:registry, a:id)
throw printf('Callback id does not exists: %s', a:id)
echo printf('Callback id does not exists: %s', a:id)
return
endif
let ret = call(s:registry[a:id], a:000)
call elin#callback#unregister(a:id)
Expand Down

0 comments on commit 53b92b6

Please sign in to comment.