Tidy and rename some bits of status line code.

This commit is contained in:
nicm
2019-03-16 17:14:07 +00:00
parent e8b33af780
commit b4f5b99e4b
8 changed files with 77 additions and 57 deletions

View File

@ -229,10 +229,10 @@ window_client_draw(__unused void *modedata, void *itemdata,
screen_write_hline(ctx, sx, 0, 0);
screen_write_cursormove(ctx, cx, cy + sy - 1, 0);
if (c->status.old_status != NULL)
screen_write_fast_copy(ctx, c->status.old_status, 0, 0, sx, 1);
if (c->status.old_screen != NULL)
screen_write_fast_copy(ctx, c->status.old_screen, 0, 0, sx, 1);
else
screen_write_fast_copy(ctx, &c->status.status, 0, 0, sx, 1);
screen_write_fast_copy(ctx, &c->status.screen, 0, 0, sx, 1);
}
static struct screen *