mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-14 22:43:50 -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
|
||||
" Author: itchyny
|
||||
" License: MIT License
|
||||
" Last Change: 2013/09/17 18:23:26.
|
||||
" Last Change: 2013/09/23 22:29:48.
|
||||
" =============================================================================
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
@@ -132,7 +132,7 @@ function! lightline#link(...)
|
||||
endfunction
|
||||
|
||||
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
|
||||
|
||||
function! lightline#highlight()
|
||||
|
||||
Reference in New Issue
Block a user