Added title setting (Requires tcell pull!) and optimized tab display. (#575)

* Added title setting (Requires tcell pull!) and optimized tab display.

* Changed tcell call to screen.

* Fixed bad reference for getting Buffer name.
This commit is contained in:
CaptainMcClellan
2017-03-02 11:27:49 -06:00
committed by Zachary Yedidia
parent 89acc703f5
commit 57c030d3b9
2 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"sort"
"path/filepath"
"github.com/zyedidia/tcell"
)
@@ -89,7 +90,9 @@ func TabbarString() (string, map[int]int) {
} else {
str += " "
}
str += t.views[t.CurView].Buf.GetName()
//To address issue 556.2
_, name := filepath.Split(t.views[t.CurView].Buf.GetName())
str += name
if i == curTab {
str += "]"
} else {