=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.52 retrieving revision 1.53 diff -c -r1.52 -r1.53 *** src/usr.bin/tmux/tty.c 2009/10/20 16:32:23 1.52 --- src/usr.bin/tmux/tty.c 2009/10/20 17:33:33 1.53 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.52 2009/10/20 16:32:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.53 2009/10/20 17:33:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 874,887 **** void tty_cmd_utf8character(struct tty *tty, const struct tty_ctx *ctx) { ! u_char *ptr = ctx->ptr; ! size_t i; ! for (i = 0; i < UTF8_SIZE; i++) { ! if (ptr[i] == 0xff) ! break; ! tty_putc(tty, ptr[i]); ! } } void --- 874,886 ---- void tty_cmd_utf8character(struct tty *tty, const struct tty_ctx *ctx) { ! struct window_pane *wp = ctx->wp; ! /* ! * Cannot rely on not being a partial character, so just redraw the ! * whole line. ! */ ! tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff); } void