mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Remove an unused variable.
This commit is contained in:
parent
e97daead43
commit
3f3f13fbd7
5
status.c
5
status.c
@ -806,7 +806,6 @@ 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;
|
|
||||||
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)
|
||||||
@ -820,10 +819,6 @@ status_prompt_redraw(struct client *c)
|
|||||||
} else
|
} else
|
||||||
screen_init(&c->status.status, c->tty.sx, lines, 0);
|
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)
|
if (c->prompt_mode == PROMPT_COMMAND)
|
||||||
style_apply(&gc, s->options, "message-command-style");
|
style_apply(&gc, s->options, "message-command-style");
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user