mirror of
https://github.com/zyedidia/micro
synced 2024-09-15 22:20:40 +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() {
|
if b.Modified() {
|
||||||
return "+ "
|
return "+ "
|
||||||
}
|
}
|
||||||
|
if b.Type.Readonly {
|
||||||
|
return "[ro] "
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue