Make tab views array public

Ref #1024
This commit is contained in:
Zachary Yedidia
2018-03-02 19:50:33 -05:00
parent 88d8b0b181
commit cb45481526
8 changed files with 53 additions and 53 deletions

View File

@@ -246,7 +246,7 @@ func Raw(args []string) {
curTab = len(tabs) - 1
if len(tabs) == 2 {
for _, t := range tabs {
for _, v := range t.views {
for _, v := range t.Views {
v.ToggleTabbar()
}
}
@@ -262,7 +262,7 @@ func TabSwitch(args []string) {
found := false
for _, t := range tabs {
v := t.views[t.CurView]
v := t.Views[t.CurView]
if v.Buf.GetName() == args[0] {
curTab = v.TabNum
found = true
@@ -293,7 +293,7 @@ func Cd(args []string) {
}
wd, _ := os.Getwd()
for _, tab := range tabs {
for _, view := range tab.views {
for _, view := range tab.Views {
if len(view.Buf.name) == 0 {
continue
}
@@ -444,7 +444,7 @@ func NewTab(args []string) {
curTab = len(tabs) - 1
if len(tabs) == 2 {
for _, t := range tabs {
for _, v := range t.views {
for _, v := range t.Views {
v.ToggleTabbar()
}
}