=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.231 retrieving revision 1.232 diff -u -r1.231 -r1.232 --- src/usr.bin/tmux/status.c 2021/11/15 10:58:13 1.231 +++ src/usr.bin/tmux/status.c 2022/02/03 10:07:11 1.232 @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.231 2021/11/15 10:58:13 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.232 2022/02/03 10:07:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -718,7 +718,7 @@ memcpy(&cursorgc, &gc, sizeof cursorgc); cursorgc.attr ^= GRID_ATTR_REVERSE; - start = screen_write_strlen("%s", c->prompt_string); + start = format_width(c->prompt_string); if (start > c->tty.sx) start = c->tty.sx; @@ -728,7 +728,7 @@ for (offset = 0; offset < c->tty.sx; offset++) screen_write_putc(&ctx, &gc, ' '); screen_write_cursormove(&ctx, 0, lines - 1, 0); - screen_write_nputs(&ctx, start, &gc, "%s", c->prompt_string); + format_draw(&ctx, &gc, start, c->prompt_string, NULL, 0); screen_write_cursormove(&ctx, start, lines - 1, 0); left = c->tty.sx - start;