#478 panic: Attempted to create context with negative offset 3 months ago

Ticket created by ~koeng on ~sircmpwn/aerc2

Occasionally, I will leave aerc running as I code other projects, and come back to the following error:

[koeng@kgnode2 ~]$ aerc
panic: Attempted to create context with negative offset

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Subcontext(0xc0002864e0, 0x0, 0xffffffffffffffff, 0xbf, 0x1, 0xc00004bd70)
        git.sr.ht/~sircmpwn/aerc/lib/ui/context.go:47 +0x1e7
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0001684d0, 0xc0002864e0)
        git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:143 +0x256
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc000168580, 0xc0002864e0)
        git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:176 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc000260870, 0xc000020000)
        git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0x1d1
        git.sr.ht/~sircmpwn/aerc/aerc.go:194 +0x697

aerc crashes, but tends not to crash when I am using it. I am using Arch Linux running the i3 window manager, running aerc in st. Any possible fixes?