From ffb5acbdeede710585aeb68994839f404179f2b9 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 18 Jun 2017 22:02:52 +0800 Subject: [PATCH] Fix denite statusline --- autoload/SpaceVim/layers/core/statusline.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/SpaceVim/layers/core/statusline.vim b/autoload/SpaceVim/layers/core/statusline.vim index 5ce0687f3..40230041f 100644 --- a/autoload/SpaceVim/layers/core/statusline.vim +++ b/autoload/SpaceVim/layers/core/statusline.vim @@ -184,10 +184,10 @@ function! SpaceVim#layers#core#statusline#get(...) abort return '%#SpaceVim_statusline_a#' . s:winnr() . '%#SpaceVim_statusline_a_SpaceVim_statusline_b#' \ . '%#SpaceVim_statusline_b# TabsManager %#SpaceVim_statusline_b_SpaceVim_statusline_c#' elseif &filetype ==# 'denite' - return '%#SpaceVim_statusline_a#%{denite#get_status_mode()}%#SpaceVim_statusline_a_SpaceVim_statusline_b#' - \ . '%#SpaceVim_statusline_b#%{denite#get_status_sources()}%#SpaceVim_statusline_b_SpaceVim_statusline_z#' + return '%#SpaceVim_statusline_a# %{split(denite#get_status_mode())[1]} %#SpaceVim_statusline_a_SpaceVim_statusline_b# ' + \ . '%#SpaceVim_statusline_b#%{denite#get_status_sources()} %#SpaceVim_statusline_b_SpaceVim_statusline_z# ' \ . '%#SpaceVim_statusline_z#%=%#SpaceVim_statusline_c_SpaceVim_statusline_z#' - \ . '%#SpaceVim_statusline_c#%{denite#get_status_path() . denite#get_status_linenr()}' + \ . '%#SpaceVim_statusline_c# %{denite#get_status_path() . denite#get_status_linenr()}' endif if a:0 > 0