copy(tab.views[splitIndex+1:], tab.views[splitIndex:])
tab.views[splitIndex] = newView
- tab.curView = splitIndex
+ tab.CurView = splitIndex
} else {
if splitIndex > 1 {
splitIndex = 1
copy(tab.views[splitIndex+1:], tab.views[splitIndex:])
tab.views[splitIndex] = newView
- tab.curView = splitIndex
+ tab.CurView = splitIndex
}
tab.Resize()
copy(tab.views[splitIndex+1:], tab.views[splitIndex:])
tab.views[splitIndex] = newView
- tab.curView = splitIndex
+ tab.CurView = splitIndex
} else {
if splitIndex > 1 {
splitIndex = 1
copy(tab.views[splitIndex+1:], tab.views[splitIndex:])
tab.views[splitIndex] = newView
- tab.curView = splitIndex
+ tab.CurView = splitIndex
}
tab.Resize()
for i, v := range tab.views {
v.Num = i
}
- if tab.curView > 0 {
- tab.curView--
+ if tab.CurView > 0 {
+ tab.CurView--
}
}