~sircmpwn/aerc2#170: 
Crash if you view too many emails at the same time

Steps to reproduce:

  1. Go to your inbox
  2. Open a mail
  3. C-n to go back to inbox
  4. Goto 2
panic: Attempted to draw outside of context

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Printf(0xc000366cc0, 0x88, 0x0, 0x0, 0x85748f, 0x4, 0xc00024bd78, 0x1, 0x1, 0x1a)
	/home/leonardo/.cache/pacaur/aerc-git/src/aerc/lib/ui/context.go:69 +0x3a3
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabStrip).Draw(0xc000096780, 0xc000366cc0)
	/home/leonardo/.cache/pacaur/aerc-git/src/aerc/lib/ui/tab.go:122 +0x15c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000b8580, 0xc000161d10)
	/home/leonardo/.cache/pacaur/aerc-git/src/aerc/lib/ui/grid.go:117 +0x111
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc000166540, 0xc000161d10)
	/home/leonardo/.cache/pacaur/aerc-git/src/aerc/widgets/aerc.go:101 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc000098640, 0x871600)
	/home/leonardo/.cache/pacaur/aerc-git/src/aerc/lib/ui/ui.go:93 +0x11d
main.main()
	/home/leonardo/.cache/pacaur/aerc-git/src/aerc/aerc.go:113 +0x34b
Status
REPORTED
Submitter
~gkbrk
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
1 year, 4 months ago
Labels
bug tui