-/* $OpenBSD: status.c,v 1.175 2018/02/05 08:21:54 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.176 2018/02/22 11:42:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
struct screen old_status;
u_int i, offset, left, start, pcursor, pwidth, width;
u_int lines;
- size_t len;
struct grid_cell gc, cursorgc;
if (c->tty.sx == 0 || c->tty.sy == 0)
} else
screen_init(&c->status.status, c->tty.sx, lines, 0);
- len = screen_write_strlen("%s", c->prompt_string);
- if (len > c->tty.sx)
- len = c->tty.sx;
-
if (c->prompt_mode == PROMPT_COMMAND)
style_apply(&gc, s->options, "message-command-style");
else