From 7740f5723003bf403e54950d58e734d53ad465ed Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 24 Aug 2013 19:23:30 +0900 Subject: [PATCH] remove arguments --- autoload/lightline.vim | 5 ++--- plugin/lightline.vim | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index de93687..7f397c6 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -3,7 +3,7 @@ " Version: 0.0 " Author: itchyny " License: MIT License -" Last Change: 2013/08/24 18:23:47. +" Last Change: 2013/08/24 19:16:30. " ============================================================================= let s:save_cpo = &cpo @@ -12,9 +12,8 @@ set cpo&vim let s:_ = 1 let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running') -function! lightline#update(hi) +function! lightline#update() if s:_ | call lightline#init() | endif - if a:hi | call lightline#highlight() | endif let s = [lightline#statusline(0), lightline#statusline(1)] let w = winnr() for n in range(1, winnr('$')) diff --git a/plugin/lightline.vim b/plugin/lightline.vim index f99ee7b..1a6c701 100644 --- a/plugin/lightline.vim +++ b/plugin/lightline.vim @@ -3,7 +3,7 @@ " Version: 0.0 " Author: itchyny " License: MIT License -" Last Change: 2013/08/24 18:22:31. +" Last Change: 2013/08/24 19:19:13. " ============================================================================= if exists('g:loaded_lightline') && g:loaded_lightline @@ -15,8 +15,8 @@ set cpo&vim augroup LightLine autocmd! - autocmd ColorScheme * call lightline#update(1) - autocmd WinEnter,BufWinEnter,FileType * call lightline#update(0) + autocmd WinEnter,BufWinEnter,FileType,ColorScheme * call lightline#update() + autocmd ColorScheme * call lightline#highlight() autocmd CursorMoved,BufUnload * call lightline#update_once() augroup END