Create tab struct and reorganize tab bar

This commit is contained in:
Zachary Yedidia
2016-06-08 13:26:50 -04:00
parent 5f19f69681
commit 40affa56c7
9 changed files with 137 additions and 101 deletions

View File

@@ -51,9 +51,14 @@ type SerializedBuffer struct {
func NewBuffer(txt []byte, path string) *Buffer {
b := new(Buffer)
b.LineArray = NewLineArray(txt)
b.Path = path
b.Name = path
if path == "" {
b.Name = "No name"
}
b.ModTime, _ = GetModTime(b.Path)
b.EventHandler = NewEventHandler(b)