From e450fdd76bafa87c1450bd6a3ba85757ebb3db20 Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 23 Aug 2013 13:37:40 +0900 Subject: [PATCH] remove update for InsertLeave, InsertEnter (trash in initial implementation) --- autoload/lightline.vim | 4 ++-- plugin/lightline.vim | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 50b3fac..2609d6d 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/23 12:11:54. +" Last Change: 2013/08/23 13:36:31. " ============================================================================= let s:save_cpo = &cpo @@ -12,7 +12,7 @@ set cpo&vim let s:_ = 1 let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running') -function! lightline#update(...) +function! lightline#update() if s:_ | call lightline#init() | endif let s = [lightline#statusline(0), lightline#statusline(1)] let w = winnr() diff --git a/plugin/lightline.vim b/plugin/lightline.vim index 834f536..895fe38 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/22 19:06:29. +" Last Change: 2013/08/23 13:36:39. " ============================================================================= let s:save_cpo = &cpo @@ -14,8 +14,6 @@ augroup LightLine autocmd ColorScheme * call lightline#highlight() autocmd WinEnter,BufWinEnter * call lightline#update() autocmd CursorMoved,FileType * call lightline#update_once() - autocmd InsertLeave * call lightline#update(1) - autocmd InsertEnter * call lightline#update(0) augroup END let &cpo = s:save_cpo