From 6e25afeda10e4865b6d10d149d8b448b1235a129 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 15 Feb 2015 08:48:39 +0900 Subject: [PATCH] fix colorscheme.vim: check type of the attribute in lightline#colorscheme#flatten --- autoload/lightline/colorscheme.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lightline/colorscheme.vim b/autoload/lightline/colorscheme.vim index 7bcbc83..5027d02 100644 --- a/autoload/lightline/colorscheme.vim +++ b/autoload/lightline/colorscheme.vim @@ -3,7 +3,7 @@ " Version: 0.0 " Author: itchyny " License: MIT License -" Last Change: 2015/01/17 12:51:08. +" Last Change: 2015/02/15 08:47:11. " ============================================================================= let s:save_cpo = &cpo @@ -212,7 +212,7 @@ function! lightline#colorscheme#flatten(p) abort for l in values(k) for m in range(len(l)) let attr = "" - if len(l[m]) == 3 + if len(l[m]) == 3 && type(l[m][2]) == 1 let attr = l[m][2] endif let l[m] = [l[m][0][0], l[m][1][0], l[m][0][1], l[m][1][1]]