gutentags: output correct statusline message

fixes #1703
This commit is contained in:
Christian Brabandt 2018-04-06 02:14:10 +02:00
parent bf3cc5ad9d
commit ae394294c3
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -8,7 +8,8 @@ if !get(g:, 'loaded_gutentags', 0)
endif
function! airline#extensions#gutentags#status()
return gutentags#statusline() =~# '^TAGS' ? 'Gen. tags' : ''
let msg = gutentags#statusline()
return empty(msg) ? '' : 'Gen. ' . msg
endfunction
function! airline#extensions#gutentags#init(ext)