nvim: plugin: statusline: Oops, make read only descriptive

Just R does not make any sense.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-21 17:39:38 +05:30
parent 467a660409
commit e366962b4e

View file

@ -27,7 +27,7 @@ function! GetFileStatus()
let l:file = expand('%:p')
let l:status =
\ (&readonly || (filereadable(l:file) && !filewritable(l:file))
\ ? 'R'
\ ? 'RO'
\ : '')
\ . (&modified ? '+m' : '')
return len(l:status) > 0 ? ' ' . l:status : ''