Merge pull request #245 from farseer90718/master

Disable white space detection for unmodifiable buffers
This commit is contained in:
Bailey Ling 2013-09-10 19:26:00 -07:00
commit 95f83e8c5a

View File

@ -19,7 +19,7 @@ let s:mixed_indent_format = get(g:, 'airline#extensions#whitespace#mixed_indent_
let s:enabled = 1 let s:enabled = 1
function! airline#extensions#whitespace#check() function! airline#extensions#whitespace#check()
if &readonly || !s:enabled if &readonly || !&modifiable || !s:enabled
return '' return ''
endif endif