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.
1 parent b8641ed commit 40b7e88Copy full SHA for 40b7e88
autoload/vital/__vital__/Data/Optional.vim
@@ -74,7 +74,7 @@ function! s:get_unsafe(o) abort
74
endfunction
75
76
function! s:get_or(o, alt) abort
77
- return get(a:o, s:SOME_KEY, a:alt())
+ return has_key(a:o, s:SOME_KEY) ? a:o[s:SOME_KEY] : a:alt()
78
79
80
function! s:has(o, type) abort
0 commit comments