summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-22 15:55:32 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-22 15:55:32 +0000
commit5bd72ec62990d96c3af87858e263bff7a1c0f220 (patch)
tree6c2ed3ce94499ab7d9edd0b45aa14162c8894e20 /screen-write.c
parente43b6a2dd2a52b49cd92481fc09074b595e83386 (diff)
tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to
tty_cmd_utf8character and eliminate the size argument.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/screen-write.c b/screen-write.c
index 59b8b027..ba8a226e 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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;
}