Try completing and deleting from templates in a line with e.g. and press tab.
query -f -n "🔎" date:1y.. {{.Acc
You'll get a panic e.g. here:
git.sr.ht/~rjarry/aerc/lib/ui/textinput.go:254 +0x1ba
ti.text = append(ti.text[:ti.index-1], ti.text[ti.index:]...)
Tim Culverhouse referenced this ticket in commit 894c97e.