mirror of
https://github.com/zyedidia/micro
synced 2024-09-06 00:33:41 +00:00
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:
parent
57c34e2248
commit
2fd59adffa
|
@ -47,6 +47,9 @@ var statusInfo = map[string]func(*buffer.Buffer) string{
|
|||
if b.Modified() {
|
||||
return "+ "
|
||||
}
|
||||
if b.Type.Readonly {
|
||||
return "[ro] "
|
||||
}
|
||||
return ""
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue