From 195f2e1dae6282362abadadf66583fe03e796527 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sun, 27 Aug 2017 21:29:40 +0200 Subject: [PATCH] keymap: fix missing keymap symbol, fix wrong condition --- autoload/airline/extensions/keymap.vim | 2 +- autoload/airline/init.vim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/keymap.vim b/autoload/airline/extensions/keymap.vim index 3be7949..4f54937 100644 --- a/autoload/airline/extensions/keymap.vim +++ b/autoload/airline/extensions/keymap.vim @@ -8,7 +8,7 @@ if !has('keymap') endif 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 function! airline#extensions#keymap#init(ext) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 01d3998..57a24cb 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -69,7 +69,8 @@ function! airline#init#bootstrap() \ 'paste': 'PASTE', \ 'spell': 'SPELL', \ 'modified': '+', - \ 'space': ' ' + \ 'space': ' ', + \ 'keymap': 'Keymap:' \ }, 'keep') if get(g:, 'airline_powerline_fonts', 0)