mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 22:52:51 +09:00
Revert "Added title setting (Requires tcell pull!) and optimized tab display." (#581)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user