mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-12 13:33:50 -05:00
use strict string comparison operator
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user