Display 'No name' for empty files

This commit is contained in:
Zachary Yedidia
2016-11-28 12:52:45 -05:00
parent 4e4b4bfe68
commit 78b2a99f2e

View File

@@ -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 {