Add SaveAll command and display + for modified tabs

Closes #651
This commit is contained in:
Zachary Yedidia
2017-05-05 11:05:23 -04:00
parent 8d1618692e
commit a6ee75a9cf
5 changed files with 27 additions and 3 deletions

View File

@@ -89,13 +89,17 @@ func TabbarString() (string, map[int]int) {
} else {
str += " "
}
str += t.views[t.CurView].Buf.GetName()
buf := t.views[t.CurView].Buf
str += buf.GetName()
if buf.IsModified {
str += " +"
}
if i == curTab {
str += "]"
} else {
str += " "
}
indicies[len(str)-1] = i + 1
indicies[Count(str)-1] = i + 1
str += " "
}
return str, indicies