keymap: fix missing keymap symbol, fix wrong condition
This commit is contained in:
parent
97f3f84881
commit
195f2e1dae
@ -8,7 +8,7 @@ if !has('keymap')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! airline#extensions#keymap#status()
|
function! airline#extensions#keymap#status()
|
||||||
return printf('%s', (&keymap ? (g:airline_symbols.keymap . ' '. &keymap) : ''))
|
return printf('%s', (!empty(&keymap) ? (g:airline_symbols.keymap . ' '. &keymap) : ''))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#keymap#init(ext)
|
function! airline#extensions#keymap#init(ext)
|
||||||
|
@ -69,7 +69,8 @@ function! airline#init#bootstrap()
|
|||||||
\ 'paste': 'PASTE',
|
\ 'paste': 'PASTE',
|
||||||
\ 'spell': 'SPELL',
|
\ 'spell': 'SPELL',
|
||||||
\ 'modified': '+',
|
\ 'modified': '+',
|
||||||
\ 'space': ' '
|
\ 'space': ' ',
|
||||||
|
\ 'keymap': 'Keymap:'
|
||||||
\ }, 'keep')
|
\ }, 'keep')
|
||||||
|
|
||||||
if get(g:, 'airline_powerline_fonts', 0)
|
if get(g:, 'airline_powerline_fonts', 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user