Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2017-12-18 14:01:18 +00:00
commit 43a1294ed9

View File

@ -803,7 +803,7 @@ status_prompt_redraw(struct client *c)
struct screen old_status; struct screen old_status;
u_int i, offset, left, start, pcursor, pwidth, width; u_int i, offset, left, start, pcursor, pwidth, width;
u_int lines; u_int lines;
size_t len, off; size_t len;
struct grid_cell gc, cursorgc; struct grid_cell gc, cursorgc;
if (c->tty.sx == 0 || c->tty.sy == 0) if (c->tty.sx == 0 || c->tty.sy == 0)
@ -819,7 +819,6 @@ status_prompt_redraw(struct client *c)
len = screen_write_strlen("%s", c->prompt_string); len = screen_write_strlen("%s", c->prompt_string);
if (len > c->tty.sx) if (len > c->tty.sx)
len = c->tty.sx; len = c->tty.sx;
off = 0;
if (c->prompt_mode == PROMPT_COMMAND) if (c->prompt_mode == PROMPT_COMMAND)
style_apply(&gc, s->options, "message-command-style"); style_apply(&gc, s->options, "message-command-style");