mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 14:03:51 -05:00
use ==# to check string equality
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Filename: autoload/lightline.vim
|
" Filename: autoload/lightline.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2018/11/24 12:00:00.
|
" Last Change: 2019/07/20 12:00:00.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -11,9 +11,7 @@ set cpo&vim
|
|||||||
let s:_ = 1 " 1: uninitialized, 2: disabled
|
let s:_ = 1 " 1: uninitialized, 2: disabled
|
||||||
|
|
||||||
function! lightline#update() abort
|
function! lightline#update() abort
|
||||||
if &buftype == 'popup'
|
if &buftype ==# 'popup' | return | endif
|
||||||
return
|
|
||||||
endif
|
|
||||||
if s:_
|
if s:_
|
||||||
if s:_ == 2 | return | endif
|
if s:_ == 2 | return | endif
|
||||||
call lightline#init()
|
call lightline#init()
|
||||||
|
|||||||
Reference in New Issue
Block a user