Relocate on startup

This commit is contained in:
Zachary Yedidia
2016-08-24 14:44:29 -07:00
parent d6a7f6291a
commit b818011715
2 changed files with 8 additions and 7 deletions

View File

@@ -247,11 +247,14 @@ func main() {
tab := NewTabFromView(NewView(buf))
tab.SetNum(len(tabs))
tabs = append(tabs, tab)
// for _, t := range tabs {
// for _, v := range t.views {
// v.Resize(screen.Size())
// }
// }
for _, t := range tabs {
for _, v := range t.views {
v.Relocate()
if settings["syntax"].(bool) {
v.matches = Match(v)
}
}
}
}
// Load all the plugin stuff

View File

@@ -77,8 +77,6 @@ type View struct {
// Syntax highlighting matches
matches SyntaxMatches
// The matches from the last frame
lastMatches SyntaxMatches
splitNode *LeafNode
}