diff options
author | nicm <nicm> | 2017-12-27 13:55:42 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-12-27 13:55:42 +0000 |
commit | 937f8ed095ea89b2ecbe7bf4e2922afc8afbf3eb (patch) | |
tree | 80487e9b5b29bebd3235f92e3b7ec6544aec67ef | |
parent | c363c236aaea5b7a879493d8f3c85bead546f063 (diff) | |
download | rtmux-937f8ed095ea89b2ecbe7bf4e2922afc8afbf3eb.tar.gz rtmux-937f8ed095ea89b2ecbe7bf4e2922afc8afbf3eb.tar.bz2 rtmux-937f8ed095ea89b2ecbe7bf4e2922afc8afbf3eb.zip |
Draw command prompt correctly with status line off.
-rw-r--r-- | status.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -659,9 +659,10 @@ status_message_redraw(struct client *c) memcpy(&old_status, &c->status, sizeof old_status); lines = status_line_size(c->session); - if (lines <= 1) + if (lines <= 1) { + lines = 1; screen_init(&c->status, c->tty.sx, 1, 0); - else + } else screen_init(&c->status, c->tty.sx, lines, 0); len = screen_write_strlen("%s", c->message_string); @@ -811,9 +812,10 @@ status_prompt_redraw(struct client *c) memcpy(&old_status, &c->status, sizeof old_status); lines = status_line_size(c->session); - if (lines <= 1) + if (lines <= 1) { + lines = 1; screen_init(&c->status, c->tty.sx, 1, 0); - else + } else screen_init(&c->status, c->tty.sx, lines, 0); len = screen_write_strlen("%s", c->prompt_string); |