diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-02-03 12:01:10 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-02-03 12:01:10 +0000 |
commit | c0598e2515cd051dcf9771f6edcf9eb953644227 (patch) | |
tree | 3cd67a1034cb9c7ff5bd7da2d1dcac850817c5b7 /status.c | |
parent | 1fdec20b0da5dc3c93214aa4b2a562b533570d66 (diff) | |
parent | 948d2fad0ae9723263554115164c412aa095fe7a (diff) | |
download | rtmux-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |