mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-15 21:37:09 +09:00
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:
committed by
Zachary Yedidia
parent
89acc703f5
commit
57c030d3b9
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user