Merge pull request #586 from blueyed/readonly-for-nomodifiable
Add `readonly` indicator also for &nomodifiable
This commit is contained in:
commit
310331cfc4
|
@ -156,7 +156,7 @@ function! airline#check_mode(winnr)
|
||||||
call add(l:mode, 'paste')
|
call add(l:mode, 'paste')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if &readonly
|
if &readonly || ! &modifiable
|
||||||
call add(l:mode, 'readonly')
|
call add(l:mode, 'readonly')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue