keymap: fix the style

This commit is contained in:
Christian Brabandt 2017-08-26 18:14:08 +02:00
parent 89e484ac59
commit 57cda93aad
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -1,4 +1,5 @@
" MIT License. Copyright (c) 2017 Doron Behar. " MIT License. Copyright (c) 2013-2017 Doron Behar, C.Brabandt
" vim: et ts=2 sts=2 sw=2
scriptencoding utf-8 scriptencoding utf-8
@ -7,12 +8,7 @@ if !has('keymap')
endif endif
function! airline#extensions#keymap#status() function! airline#extensions#keymap#status()
if &keymap != '' return ('%s', (&keymap ? (g:airline_symbols.keymap . ' '. &keymap) : ''))
let s:keymap2print = g:airline_symbols.keymap . ' ' . &keymap
else
let s:keymap2print = ''
endif
return printf('%s', s:keymap2print)
endfunction endfunction
function! airline#extensions#keymap#init(ext) function! airline#extensions#keymap#init(ext)