Disable white space detection for unmodifiable buffers

This commit is contained in:
farseer90718 2013-09-11 10:08:51 +08:00
parent 3f67df6440
commit e117af9dd0

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