diff options
author | nicm <nicm> | 2019-03-16 19:12:13 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-16 19:12:13 +0000 |
commit | b588b1729ad9668a60d402d549506e56d72f1919 (patch) | |
tree | 97cb3d5f7803fbc220b1b88bf58e7d1b786b0d29 /window-client.c | |
parent | 818fda03638e5001209886ddcd12b401c23dffae (diff) | |
download | rtmux-b588b1729ad9668a60d402d549506e56d72f1919.tar.gz rtmux-b588b1729ad9668a60d402d549506e56d72f1919.tar.bz2 rtmux-b588b1729ad9668a60d402d549506e56d72f1919.zip |
Use a pointer for the active screen in the status line instead of
copying them around all the time.
Diffstat (limited to 'window-client.c')
-rw-r--r-- | window-client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/window-client.c b/window-client.c index 2e977184..db1edbb3 100644 --- a/window-client.c +++ b/window-client.c @@ -229,10 +229,7 @@ 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_screen != NULL) - screen_write_fast_copy(ctx, c->status.old_screen, 0, 0, sx, 1); - else - screen_write_fast_copy(ctx, &c->status.screen, 0, 0, sx, 1); + screen_write_fast_copy(ctx, &c->status.screen, 0, 0, sx, 1); } static struct screen * |