exclude readonly files from whitespace checking
This commit is contained in:
parent
6ced8b8ce6
commit
f440ad3509
@ -4,6 +4,10 @@
|
||||
" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html
|
||||
|
||||
function! airline#extensions#whitespace#check()
|
||||
if &readonly
|
||||
return ''
|
||||
endif
|
||||
|
||||
if !exists('b:airline_whitespace_check')
|
||||
let b:airline_whitespace_check = ''
|
||||
let trailing = search(' $', 'nw')
|
||||
|
Loading…
Reference in New Issue
Block a user