mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-14 22:43:50 -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
|
||||
" Author: itchyny
|
||||
" 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
|
||||
endif
|
||||
let g:loaded_lightline = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
@@ -20,7 +21,5 @@ augroup LightLine
|
||||
autocmd CursorMoved,BufUnload * call lightline#update_once()
|
||||
augroup END
|
||||
|
||||
let g:loaded_lightline = 1
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
Reference in New Issue
Block a user