~jdsnape


#130 Panic when resize terminal window 2 months ago

bug added by ~jdsnape on ~sircmpwn/aerc2

#130 Panic when resize terminal window 2 months ago

Ticket created by ~jdsnape on ~sircmpwn/aerc2

I'm trying to use aerc in i3, but when I open another terminal (causing the one running aerc to be resized and hidden) it panics:

panic: Attempted to create context larger than parent

goroutine 1 [running]: git.sr.ht/~sircmpwn/aerc/lib/ui.(Context).Subcontext(0xc00009a630, 0x0, 0x10, 0xd4, 0x22, 0xc00009b710) /home/jdsnape/go/aerc/lib/ui/context.go:49 +0x252 git.sr.ht/~sircmpwn/aerc/lib/ui.(Grid).Draw(0xc0000c0790, 0xc00009a630) /home/jdsnape/go/aerc/lib/ui/grid.go:116 +0xf0 git.sr.ht/~sircmpwn/aerc/widgets.(AccountWizard).Draw(0xc00012efc0, 0xc00009a630) /home/jdsnape/go/aerc/widgets/account-wizard.go:603 +0x47 git.sr.ht/~sircmpwn/aerc/lib/ui.(TabContent).Draw(0xc000078720, 0xc00009a630) /home/jdsnape/go/aerc/lib/ui/tab.go:154 +0x5c git.sr.ht/~sircmpwn/aerc/lib/ui.(Grid).Draw(0xc0000c06e0, 0xc00009a1e0) /home/jdsnape/go/aerc/lib/ui/grid.go:117 +0x111 git.sr.ht/~sircmpwn/aerc/widgets.(Aerc).Draw(0xc00016b960, 0xc00009a1e0) /home/jdsnape/go/aerc/widgets/aerc.go:101 +0x39 git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00019c050, 0x867700) /home/jdsnape/go/aerc/lib/ui/ui.go:93 +0x11d main.main() /home/jdsnape/go/aerc/aerc.go:113 +0x34b