mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-15 06:53:51 -05:00
improve s:term, set the same attribute for gui (sorry for changes in appearance, GVim users)
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2013/09/17 18:23:26.
|
" Last Change: 2013/09/23 22:29:48.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -132,7 +132,7 @@ function! lightline#link(...)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:term(l)
|
function! s:term(l)
|
||||||
return len(a:l) == 5 && type(a:l[4]) == 1 ? 'term='.a:l[4].' cterm='.a:l[4] : ''
|
return len(a:l) == 5 && type(a:l[4]) == 1 && strlen(a:l[4]) ? 'term='.a:l[4].' cterm='.a:l[4].' gui='.a:l[4] : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! lightline#highlight()
|
function! lightline#highlight()
|
||||||
|
|||||||
Reference in New Issue
Block a user