mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-01 04:52:19 +08:00
introduce new warning section, and refactor whitespace into an extension which uses it
This commit is contained in:
@@ -105,8 +105,7 @@ 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") ? " ✹ " : ""}'
|
||||
let sl.='%#Al3#'.s:getwinvar(a:winnr, 'airline_section_warning', '')
|
||||
endif
|
||||
return sl
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user