From a059b4effb3044e725709f595e978ab977d8c9ec Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 20 Jul 2019 13:32:02 +0900 Subject: [PATCH] use ==# to check string equality --- autoload/lightline.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 6befeee..59abb23 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -2,7 +2,7 @@ " Filename: autoload/lightline.vim " Author: itchyny " License: MIT License -" Last Change: 2018/11/24 12:00:00. +" Last Change: 2019/07/20 12:00:00. " ============================================================================= let s:save_cpo = &cpo @@ -11,9 +11,7 @@ set cpo&vim let s:_ = 1 " 1: uninitialized, 2: disabled function! lightline#update() abort - if &buftype == 'popup' - return - endif + if &buftype ==# 'popup' | return | endif if s:_ if s:_ == 2 | return | endif call lightline#init()