mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Merge pull request #120 from farseer90718/master
add white space detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user