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:
parent
467a660409
commit
e366962b4e
1 changed files with 1 additions and 1 deletions
|
@ -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 : ''
|
||||
|
|
Loading…
Reference in a new issue