Show that the file is readonly (#1486)

* Show that the file is readonly)

* change the (readonly) statusline msg into [ro]
This commit is contained in:
Rein F 2020-02-09 01:34:35 +01:00 committed by GitHub
parent 57c34e2248
commit 2fd59adffa

View file

@ -47,6 +47,9 @@ var statusInfo = map[string]func(*buffer.Buffer) string{
if b.Modified() {
return "+ "
}
if b.Type.Readonly {
return "[ro] "
}
return ""
},
}