Skip to content

Commit 1fceb56

Browse files
committed
Merge pull request #437 from vim-jp/Data.Closure/fix-for-partial
Data.Closure: Fix for Partial
2 parents 49faf10 + 9ef73cc commit 1fceb56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/vital/__vital__/Data/Closure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function! s:is_closure(expr) abort
241241
return type(a:expr) == type({}) &&
242242
\ has_key(a:expr, 'call') &&
243243
\ type(a:expr.call) == type(function('call')) &&
244-
\ a:expr.call == s:Closure.call
244+
\ get(a:expr, 'call') == get(s:Closure, 'call')
245245
endfunction
246246

247247
function! s:is_callable(expr) abort

0 commit comments

Comments
 (0)