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

1
grid.c
View File

@ -496,7 +496,6 @@ grid_get_cell1(struct grid_line *gl, u_int px, struct grid_cell *gc)
gc->fg = gee->fg;
gc->bg = gee->bg;
gc->us = gee->us;
log_debug("!!! %x", gc->flags);
utf8_to_data(gee->data, &gc->data);
}
return;

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);