In ksh(1) emacs search-history mode, emitting a NUL character causes
authorhalex <halex@openbsd.org>
Sat, 9 Oct 2021 21:38:00 +0000 (21:38 +0000)
committerhalex <halex@openbsd.org>
Sat, 9 Oct 2021 21:38:00 +0000 (21:38 +0000)
commit2a3a8cce84e16df4d3ba29af218ae57e3b2c5c0c
treedc90646f7396a606a0d56b7a2b6d07eb0ee527e2
parentd56dad13be4ab5fb67766acee791469adf034b21
In ksh(1) emacs search-history mode, emitting a NUL character causes
invalid matches and unexpected behaviour.

Fix this by instead making a NUL character abort the search-history mode,
leaving the handling of said input to the "ordinary" command editing.

ok tb@
bin/ksh/emacs.c