=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.110 retrieving revision 1.111 diff -c -r1.110 -r1.111 *** src/usr.bin/tmux/tty.c 2011/08/24 09:58:44 1.110 --- src/usr.bin/tmux/tty.c 2012/01/15 19:39:42 1.111 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.110 2011/08/24 09:58:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.111 2012/01/15 19:39:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 969,975 **** * move as far left as possible and redraw the last * cell to move into the last position. */ ! cx = screen_size_x(s) - width; tty_cursor_pane(tty, ctx, cx, ctx->ocy); tty_cell(tty, &ctx->last_cell, &ctx->last_utf8); } --- 969,978 ---- * move as far left as possible and redraw the last * cell to move into the last position. */ ! if (ctx->last_cell.flags & GRID_FLAG_UTF8) ! cx = screen_size_x(s) - ctx->last_utf8.width; ! else ! cx = screen_size_x(s) - 1; tty_cursor_pane(tty, ctx, cx, ctx->ocy); tty_cell(tty, &ctx->last_cell, &ctx->last_utf8); }