Add a "fast" version of screen_write_copy for tree mode that doesn't do

all the checks and selection and marking stuff needed for copy mode.
This commit is contained in:
nicm
2017-11-02 21:29:17 +00:00
parent 17655e5ba6
commit 8d37f699ad
5 changed files with 49 additions and 17 deletions

View File

@ -235,9 +235,9 @@ window_client_draw(__unused void *modedata, void *itemdata, u_int sx, u_int sy)
screen_write_cursormove(&ctx, 0, sy - 1);
if (c->old_status != NULL)
screen_write_copy(&ctx, c->old_status, 0, 0, sx, 1, NULL, NULL);
screen_write_fast_copy(&ctx, c->old_status, 0, 0, sx, 1);
else
screen_write_copy(&ctx, &c->status, 0, 0, sx, 1, NULL, NULL);
screen_write_fast_copy(&ctx, &c->status, 0, 0, sx, 1);
screen_write_stop(&ctx);
return (&s);