1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-01 21:41:44 +00:00

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->fg = gee->fg;
gc->bg = gee->bg; gc->bg = gee->bg;
gc->us = gee->us; gc->us = gee->us;
log_debug("!!! %x", gc->flags);
utf8_to_data(gee->data, &gc->data); utf8_to_data(gee->data, &gc->data);
} }
return; return;

View File

@ -1275,7 +1275,10 @@ process_key:
append_key: append_key:
if (key <= 0x1f || key >= KEYC_BASE) if (key <= 0x1f || key >= KEYC_BASE)
return (0); 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, c->prompt_buffer = xreallocarray(c->prompt_buffer, size + 2,
sizeof *c->prompt_buffer); sizeof *c->prompt_buffer);