mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 15:33:49 -05:00
improve g:loaded_lightline check and finish if v:version < 700
This commit is contained in:
@@ -3,12 +3,13 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2014/06/11 14:12:52.
|
" Last Change: 2014/12/14 14:27:59.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_lightline') && g:loaded_lightline
|
if exists('g:loaded_lightline') || v:version < 700
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
let g:loaded_lightline = 1
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -20,7 +21,5 @@ augroup LightLine
|
|||||||
autocmd CursorMoved,BufUnload * call lightline#update_once()
|
autocmd CursorMoved,BufUnload * call lightline#update_once()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
let g:loaded_lightline = 1
|
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|||||||
Reference in New Issue
Block a user