If there are no buffers, reset mode as soon as any key pressed. Fixes
authornicm <nicm@openbsd.org>
Thu, 3 Nov 2022 08:41:53 +0000 (08:41 +0000)
committernicm <nicm@openbsd.org>
Thu, 3 Nov 2022 08:41:53 +0000 (08:41 +0000)
commitee191f7a22501deeeee67e6923533dc072c5eefe
tree1211e776806eec7d85a43fefda8595b0822fc4d4
parenta04d395bc95b801850fb8cd1b8ee1deac823a201
If there are no buffers, reset mode as soon as any key pressed. Fixes
crash reported by Gaoyang Zhang in GitHub issue 3373.
usr.bin/tmux/window-buffer.c