statusline: Provide overwrite mode indicator

This commit is contained in:
Jöran Karl
2025-01-20 21:50:58 +01:00
parent c61670e86f
commit 57a6e81ddb
3 changed files with 10 additions and 4 deletions

View File

@@ -47,6 +47,12 @@ var statusInfo = map[string]func(*buffer.Buffer) string{
}
return ""
},
"overwrite": func(b *buffer.Buffer) string {
if b.OverwriteMode && !b.Type.Readonly {
return "[ovwr] "
}
return ""
},
"lines": func(b *buffer.Buffer) string {
return strconv.Itoa(b.LinesNum())
},