diff --git a/autoload/airline.vim b/autoload/airline.vim index 8cc903b..f6dab68 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -105,6 +105,8 @@ function! s:get_statusline(winnr, active) let sl.=a:active ? g:airline_right_sep : g:airline_right_alt_sep let sl.=l:mode_color let sl.=s:get_section(a:winnr, 'z') + let sl.="%#Al3#" + let sl.='%{g:airline_detect_white_space && search(" $","nw") ? " ✹ " : ""}' endif return sl endfunction diff --git a/plugin/airline.vim b/plugin/airline.vim index 3de3d27..36e7e66 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -27,6 +27,7 @@ call s:check_defined('g:airline_enable_tagbar', 1) call s:check_defined('g:airline_detect_iminsert', 0) call s:check_defined('g:airline_detect_modified', 1) call s:check_defined('g:airline_detect_paste', 1) +call s:check_defined('g:airline_detect_white_space', 1) call s:check_defined('g:airline_branch_prefix', exists('g:airline_powerline_fonts')?' ':'') call s:check_defined('g:airline_readonly_symbol', exists('g:airline_powerline_fonts')?'':'RO') call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':')