Try this please, see if it fixes your problem and if you see any ill
effects:
Index: tty.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/tty.c,v
retrieving revision 1.110
diff -u -p -r1.110 tty.c
--- tty.c 24 Aug 2011 09:58:44 -0000 1.110
+++ tty.c 19 Dec 2011 21:35:24 -0000
@@ -969,7 +969,10 @@ tty_cmd_cell(struct tty *tty, const stru
* move as far left as possible and redraw the last
* cell to move into the last position.
*/
- cx = screen_size_x(s) - width;
+ 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);
}
On Mon, Dec 12, 2011 at 05:36:18PM +0100, Matthias Lederhofer wrote:
> Nicholas Marriott <[email protected]> wrote:
> > uxterm rather.
>
> uxterm does actually not display the character, but displays a double
> width box instead. So I'm trying with this.
>
> Without tmux: the double width character is lost (i.e. only one line
> ending in "bar ").
> With tmux: the double width character and the "r" is missing (i.e. the
> line ends in "ba ").
>
> Can you reproduce this?
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users