mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-23 12:21:25 +08:00
Add the b:airline_whitespace_disabled feature.
If the per-buffer variable b:airline_whitespace_disabled is defined and non-zero, whitespace checking will be disabled for that buffer.
This commit is contained in:
@@ -51,6 +51,7 @@ endfunction
|
||||
|
||||
function! airline#extensions#whitespace#check()
|
||||
if &readonly || !&modifiable || !s:enabled || line('$') > s:max_lines
|
||||
\ || get(b:, 'airline_whitespace_disabled', 0)
|
||||
return ''
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user