From f7dd47eb55aed259cbc3e913f78c4ab21b3504bf Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 1 Feb 2020 18:05:56 +0900 Subject: [PATCH] use strict string comparison operator --- autoload/lightline.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 5ea984a..d426505 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -2,7 +2,7 @@ " Filename: autoload/lightline.vim " Author: itchyny " License: MIT License -" Last Change: 2020/01/29 21:00:00. +" Last Change: 2020/02/01 18:00:00. " ============================================================================= let s:save_cpo = &cpo @@ -216,7 +216,7 @@ endfunction let s:mode = '' function! lightline#link(...) abort let mode = get(s:lightline._mode_, a:0 ? a:1 : mode(), 'normal') - if s:mode == mode + if s:mode ==# mode return '' endif let s:mode = mode