From ae394294c30343d6aec3febe64a89cbfb658de89 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Fri, 6 Apr 2018 02:14:10 +0200 Subject: [PATCH] gutentags: output correct statusline message fixes #1703 --- autoload/airline/extensions/gutentags.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/gutentags.vim b/autoload/airline/extensions/gutentags.vim index 1da48a51..4af2d788 100644 --- a/autoload/airline/extensions/gutentags.vim +++ b/autoload/airline/extensions/gutentags.vim @@ -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)