From 75a44d856e6b8bf6b1b09c57d630e99c66774214 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Wed, 22 Jul 2009 17:58:42 +0000 Subject: Sync OpenBSD patchset 158: tty_cmd_raw is only used once, for raw UTF-8 output, so rename it to tty_cmd_utf8character and eliminate the size argument. --- screen-write.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index 26c9751b..41fcf38d 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.60 2009-07-15 17:43:02 nicm Exp $ */ +/* $Id: screen-write.c,v 1.61 2009-07-22 17:58:42 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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; } -- cgit