mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Display 'No name' for empty files
This commit is contained in:
@@ -18,6 +18,9 @@ func (sline *Statusline) Display() {
|
||||
y := sline.view.height + sline.view.y
|
||||
|
||||
file := sline.view.Buf.GetName()
|
||||
if file == "" {
|
||||
file = "No name"
|
||||
}
|
||||
|
||||
// If the buffer is dirty (has been modified) write a little '+'
|
||||
if sline.view.Buf.IsModified {
|
||||
|
||||
Reference in New Issue
Block a user