mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-14 11:31:01 +00:00
Fix resizing of tabs opened with the command line
This commit is contained in:
parent
82c7994e68
commit
860bc248c4
1 changed files with 8 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue