From 0b3e768d7fc9cec8caca805b3fca4e3c97ba6904 Mon Sep 17 00:00:00 2001 From: itchyny Date: Mon, 23 Sep 2013 22:31:23 +0900 Subject: [PATCH] improve s:term, set the same attribute for gui (sorry for changes in appearance, GVim users) --- autoload/lightline.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 2a58732..c3a5251 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -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()