From ac43d382c4d210f4493160e8f1d5abd0496dcb6b Mon Sep 17 00:00:00 2001 From: petobens Date: Mon, 11 Feb 2019 09:22:43 -0300 Subject: [PATCH] Fix denite extension --- autoload/airline/extensions/denite.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/denite.vim b/autoload/airline/extensions/denite.vim index e3c1f3b8b..b63743964 100644 --- a/autoload/airline/extensions/denite.vim +++ b/autoload/airline/extensions/denite.vim @@ -15,7 +15,7 @@ function! airline#extensions#denite#check_denite_mode(bufnr) return '' endif let mode = split(denite#get_status_mode(), ' ') - let mode = tolower(mode[1]) + let mode = tolower(get(mode, 1, '')) if !exists('b:denite_mode_cache') || mode != b:denite_mode_cache call airline#highlighter#highlight([mode], a:bufnr) let b:denite_mode_cache = mode