mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 05:22:12 +08:00
fixes #11. comparing of arrays not working as expected.
This commit is contained in:
parent
5e1675dc6e
commit
988e2b986c
|
@ -132,7 +132,7 @@ function! s:update_statusline(active)
|
||||||
call setwinvar(winnr(), '&statusline', sl)
|
call setwinvar(winnr(), '&statusline', sl)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:lastmode = []
|
let s:lastmode = ''
|
||||||
let g:airline_current_mode_text = ''
|
let g:airline_current_mode_text = ''
|
||||||
function! airline#update_highlight()
|
function! airline#update_highlight()
|
||||||
let l:m = mode()
|
let l:m = mode()
|
||||||
|
@ -151,9 +151,10 @@ function! airline#update_highlight()
|
||||||
call add(l:mode, 'paste')
|
call add(l:mode, 'paste')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if s:lastmode != l:mode
|
let mode_string = join(l:mode)
|
||||||
|
if s:lastmode != mode_string
|
||||||
call <sid>highlight(l:mode)
|
call <sid>highlight(l:mode)
|
||||||
let s:lastmode = l:mode
|
let s:lastmode = mode_string
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:airline_current_mode_text = get(g:airline_mode_map, l:m, l:m)
|
let g:airline_current_mode_text = get(g:airline_mode_map, l:m, l:m)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user