From 53b92b69c82d8bb4df54b77bf9f5c5030fefb0bc Mon Sep 17 00:00:00 2001 From: liquidz Date: Sun, 15 Dec 2024 06:36:59 +0900 Subject: [PATCH] fix: Fix not to throw error when callback id does not exists --- autoload/elin/callback.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/elin/callback.vim b/autoload/elin/callback.vim index e5c49fa6..c1435de3 100644 --- a/autoload/elin/callback.vim +++ b/autoload/elin/callback.vim @@ -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)