Merge pull request #586 from blueyed/readonly-for-nomodifiable

Add `readonly` indicator also for &nomodifiable
This commit is contained in:
Bailey Ling 2014-08-29 22:09:55 -04:00
commit 310331cfc4
1 changed files with 1 additions and 1 deletions

View File

@ -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