mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +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
1 changed files with 3 additions and 0 deletions
|
|
@ -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