Create tab struct and reorganize tab bar

This commit is contained in:
Zachary Yedidia
2016-06-08 13:26:50 -04:00
parent 5f19f69681
commit 40affa56c7
9 changed files with 137 additions and 101 deletions

View File

@@ -45,6 +45,8 @@ type View struct {
// This is the index of this view in the views array
Num int
// What tab is this view stored in
TabNum int
// Is this view modifiable?
Modifiable bool
@@ -602,9 +604,6 @@ func (v *View) DisplayView() {
}
}
indentChar := []rune(settings["indentchar"].(string))
if x-v.leftCol >= v.lineNumOffset {
screen.SetContent(x-v.leftCol, lineN, indentChar[0], nil, lineIndentStyle)
}
if x-v.leftCol >= v.lineNumOffset {
screen.SetContent(x-v.leftCol, lineN+v.y, indentChar[0], nil, lineIndentStyle)
}