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
1 changed files with 1 additions and 1 deletions

View File

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