fix colorscheme.vim: check type of the attribute in lightline#colorscheme#flatten

This commit is contained in:
itchyny
2015-02-15 08:48:39 +09:00
parent a0e06cbe4d
commit 6e25afeda1

View File

@@ -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]]