From f90b5825db827914be6ccb6a351fe4c20998ec9c Mon Sep 17 00:00:00 2001 From: Derek Sifford Date: Tue, 28 May 2019 19:08:04 -0400 Subject: [PATCH] remove lambda from helper function so as to not break support for older vims --- autoload/airline/themes/dracula.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/themes/dracula.vim b/autoload/airline/themes/dracula.vim index d0d90b1..3490c38 100644 --- a/autoload/airline/themes/dracula.vim +++ b/autoload/airline/themes/dracula.vim @@ -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