diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-02-03 12:50:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-02-03 12:50:49 +0000 |
commit | 53ee4f0334b61192a4c92a5327d849fb688386e9 (patch) | |
tree | 284ecec84f60273fafada76df304140fdfe30f78 /status.c | |
parent | b46abeb34d775159b9c50618339d8da9fd8c0212 (diff) | |
parent | c0598e2515cd051dcf9771f6edcf9eb953644227 (diff) | |
download | rtmux-53ee4f0334b61192a4c92a5327d849fb688386e9.tar.gz rtmux-53ee4f0334b61192a4c92a5327d849fb688386e9.tar.bz2 rtmux-53ee4f0334b61192a4c92a5327d849fb688386e9.zip |
Merge branch 'master' into 3.3-rc
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; |