tui: fix laggy typing (#2922)
we were checking every typed character to see if it was an image. this involved going to disk, which was slow. this was a bad interaction between image paste support and burst-paste detection.
This commit is contained in: