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')
|
||||
endif
|
||||
|
||||
if &readonly
|
||||
if &readonly || ! &modifiable
|
||||
call add(l:mode, 'readonly')
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue