mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-12 21:43:50 -05:00
use strict string comparison operator
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: 2020/01/29 21:00:00.
|
" Last Change: 2020/02/01 18:00:00.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -216,7 +216,7 @@ endfunction
|
|||||||
let s:mode = ''
|
let s:mode = ''
|
||||||
function! lightline#link(...) abort
|
function! lightline#link(...) abort
|
||||||
let mode = get(s:lightline._mode_, a:0 ? a:1 : mode(), 'normal')
|
let mode = get(s:lightline._mode_, a:0 ? a:1 : mode(), 'normal')
|
||||||
if s:mode == mode
|
if s:mode ==# mode
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
let s:mode = mode
|
let s:mode = mode
|
||||||
|
|||||||
Reference in New Issue
Block a user