We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8078a42 + fe1feb8 commit 42f4dc8Copy full SHA for 42f4dc8
1 file changed
autoload/vital/__vital__/Data/Dict.vim
@@ -98,7 +98,7 @@ endfunction
98
99
function! s:_max_by(dict, expr) abort
100
let dict = s:swap(map(copy(a:dict), a:expr))
101
- let key = dict[max(keys(dict))]
+ let key = dict[max(map(keys(dict), 'v:val + 0'))]
102
return [key, a:dict[key]]
103
endfunction
104
0 commit comments