Fix resizing of tabs opened with the command line

This commit is contained in:
Zachary Yedidia
2016-06-08 19:43:05 -04:00
parent 82c7994e68
commit 860bc248c4

View File

@@ -236,7 +236,14 @@ func main() {
buffers := LoadInput()
for _, buf := range buffers {
tabs = append(tabs, NewTabFromView(NewView(buf)))
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())
}
}
}
L.SetGlobal("OS", luar.New(L, runtime.GOOS))