import (
"sort"
- "path/filepath"
"github.com/zyedidia/tcell"
)
} else {
str += " "
}
- //To address issue 556.2
- _, name := filepath.Split(t.views[t.CurView].Buf.GetName())
- str += name
+ 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