mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 23:43:42 -05:00
remove update for InsertLeave, InsertEnter (trash in initial implementation)
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/08/23 12:11:54.
|
" Last Change: 2013/08/23 13:36:31.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -12,7 +12,7 @@ set cpo&vim
|
|||||||
let s:_ = 1
|
let s:_ = 1
|
||||||
let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running')
|
let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running')
|
||||||
|
|
||||||
function! lightline#update(...)
|
function! lightline#update()
|
||||||
if s:_ | call lightline#init() | endif
|
if s:_ | call lightline#init() | endif
|
||||||
let s = [lightline#statusline(0), lightline#statusline(1)]
|
let s = [lightline#statusline(0), lightline#statusline(1)]
|
||||||
let w = winnr()
|
let w = winnr()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2013/08/22 19:06:29.
|
" Last Change: 2013/08/23 13:36:39.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -14,8 +14,6 @@ augroup LightLine
|
|||||||
autocmd ColorScheme * call lightline#highlight()
|
autocmd ColorScheme * call lightline#highlight()
|
||||||
autocmd WinEnter,BufWinEnter * call lightline#update()
|
autocmd WinEnter,BufWinEnter * call lightline#update()
|
||||||
autocmd CursorMoved,FileType * call lightline#update_once()
|
autocmd CursorMoved,FileType * call lightline#update_once()
|
||||||
autocmd InsertLeave * call lightline#update(1)
|
|
||||||
autocmd InsertEnter * call lightline#update(0)
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
|
|||||||
Reference in New Issue
Block a user