fix lightline#init: unlet the value because the type of the values in the configuration can change

This commit is contained in:
itchyny
2016-03-20 10:14:04 +09:00
parent 9f38b3c2d1
commit f799d94a34

View File

@@ -2,7 +2,7 @@
" Filename: autoload/lightline.vim
" Author: itchyny
" License: MIT License
" Last Change: 2016/03/20 10:04:23.
" Last Change: 2016/03/20 10:13:05.
" =============================================================================
let s:save_cpo = &cpo
@@ -151,6 +151,7 @@ function! lightline#init() abort
elseif !has_key(s:lightline, key)
let s:lightline[key] = value
endif
unlet value
endfor
call extend(s:lightline.tabline_separator, s:lightline.separator, 'keep')
call extend(s:lightline.tabline_subseparator, s:lightline.subseparator, 'keep')