Skip to content

Commit

Permalink
remove lambda from helper function so as to not break support for old…
Browse files Browse the repository at this point in the history
…er vims
  • Loading branch information
dsifford committed May 28, 2019
1 parent cd18ffb commit f90b582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/airline/themes/dracula.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func! s:clr(fg, bg, ...)
let l:fg = g:dracula#palette[a:fg]
let l:bg = g:dracula#palette[a:bg]
return [ l:fg[0], l:bg[0], l:fg[1], l:bg[1] ] +
\ filter(copy(a:000), {_, val -> type(val) == 1 && len(val) > 0 })
\ filter(copy(a:000), 'type(v:val) == 1 && len(v:val) > 0')
endfunc

" Takes three ['fg', 'bg'] color lists and optionally a dictionary of extra
Expand Down

0 comments on commit f90b582

Please sign in to comment.