Don't output partial UTF-8 characters in ksh emacs mode. Instead, try to read a
authoranton <anton@openbsd.org>
Sun, 25 Jun 2017 08:51:52 +0000 (08:51 +0000)
committeranton <anton@openbsd.org>
Sun, 25 Jun 2017 08:51:52 +0000 (08:51 +0000)
commit8a9faaaacdbdf9542d854dabe98db70ccd3cc239
tree90d2200513ef99de142c15af87d8ac2b2f39cd79
parent2a676cd61afa3c010ce4f9fad1cb5bafa600e8b1
Don't output partial UTF-8 characters in ksh emacs mode. Instead, try to read a
complete UTF-8 character first. Fixes an issue while running ksh in tmux where
UTF-8 characters inserted in columns other than the last one are discarded.

With help from nicm@ and schwarze@ who also wrote the UTF-8 validation, thanks!

ok schwarze@
bin/ksh/emacs.c