Revert "Added title setting (Requires tcell pull!) and optimized tab display." (#581)

This commit is contained in:
Zachary Yedidia
2017-03-03 11:43:44 -05:00
committed by GitHub
parent a537c584d0
commit ab74e56a40
2 changed files with 1 additions and 6 deletions

View File

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

View File

@@ -976,8 +976,6 @@ func (v *View) DisplayCursor(x, y int) {
// Display renders the view, the cursor, and statusline
func (v *View) Display() {
//Set title to the name of the current buffer
screen.SetTitle("micro: " + v.Buf.GetName())
v.DisplayView()
// Don't draw the cursor if it is out of the viewport or if it has a selection
if (v.Cursor.Y-v.Topline < 0 || v.Cursor.Y-v.Topline > v.Height-1) || v.Cursor.HasSelection() {