mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-12 13:33:50 -05:00
fix colorscheme.vim: check type of the attribute in lightline#colorscheme#flatten
This commit is contained in:
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user