Merge pull request #245 from farseer90718/master
Disable white space detection for unmodifiable buffers
This commit is contained in:
commit
95f83e8c5a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user