mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-17 06:17:12 +09:00
Relocate on startup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -77,8 +77,6 @@ type View struct {
|
||||
|
||||
// Syntax highlighting matches
|
||||
matches SyntaxMatches
|
||||
// The matches from the last frame
|
||||
lastMatches SyntaxMatches
|
||||
|
||||
splitNode *LeafNode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user