Remove leftover debug logging and fix comparison.

This commit is contained in:
nicm
2020-05-26 08:56:48 +00:00
parent ca0166f26f
commit 370f0bb98d
2 changed files with 4 additions and 2 deletions

View File

@ -1275,7 +1275,10 @@ process_key:
append_key:
if (key <= 0x1f || key >= KEYC_BASE)
return (0);
utf8_to_data(key, &tmp);
if (key <= 0x7f)
utf8_set(&tmp, key);
else
utf8_to_data(key, &tmp);
c->prompt_buffer = xreallocarray(c->prompt_buffer, size + 2,
sizeof *c->prompt_buffer);