aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-02-03 12:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2022-02-03 12:01:10 +0000
commitc0598e2515cd051dcf9771f6edcf9eb953644227 (patch)
tree3cd67a1034cb9c7ff5bd7da2d1dcac850817c5b7 /status.c
parent1fdec20b0da5dc3c93214aa4b2a562b533570d66 (diff)
parent948d2fad0ae9723263554115164c412aa095fe7a (diff)
downloadrtmux-c0598e2515cd051dcf9771f6edcf9eb953644227.tar.gz
rtmux-c0598e2515cd051dcf9771f6edcf9eb953644227.tar.bz2
rtmux-c0598e2515cd051dcf9771f6edcf9eb953644227.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'status.c')
-rw-r--r--status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/status.c b/status.c
index bb57b3d6..79033242 100644
--- a/status.c
+++ b/status.c
@@ -718,7 +718,7 @@ status_prompt_redraw(struct client *c)
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 @@ status_prompt_redraw(struct client *c)
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;