mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to
tty_cmd_utf8character and eliminate the size argument.
This commit is contained in:
@ -700,7 +700,6 @@ screen_write_cell(
|
||||
struct grid_utf8 gu, *tmp_gu;
|
||||
u_int width, xx, i;
|
||||
struct grid_cell tmp_gc, *tmp_gc2;
|
||||
size_t size;
|
||||
int insert = 0;
|
||||
|
||||
/* Ignore padding. */
|
||||
@ -737,11 +736,7 @@ screen_write_cell(
|
||||
memcpy(tmp_gu->data + i, udata, UTF8_SIZE - i);
|
||||
|
||||
/* Assume the previous character has just been input. */
|
||||
for (size = 0; size < UTF8_SIZE; size++) {
|
||||
if (udata[size] == 0xff)
|
||||
break;
|
||||
}
|
||||
tty_write_cmd(ctx->wp, TTY_RAW, udata, size);
|
||||
tty_write_cmd(ctx->wp, TTY_UTF8CHARACTER, udata);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user