mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-25 00:24:45 +00:00
Relocate on startup
This commit is contained in:
parent
d6a7f6291a
commit
b818011715
2 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue