mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-20 05:50:20 +09: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:
@@ -47,6 +47,9 @@ var statusInfo = map[string]func(*buffer.Buffer) string{
|
||||
if b.Modified() {
|
||||
return "+ "
|
||||
}
|
||||
if b.Type.Readonly {
|
||||
return "[ro] "
|
||||
}
|
||||
return ""
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user