From ea5fdd5331d74d305cbb61b8f47a2054fc2052fb Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 18 Apr 2020 15:12:28 +0000 Subject: There is no point in keeping a bunch of different text buffers for each line when writing, we only need one as big as the line width - there can't be any more text than that since newer will overwrite older. --- tmux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index edc2f377..b8bcfe5b 100644 --- a/tmux.h +++ b/tmux.h @@ -769,6 +769,8 @@ struct screen { bitstr_t *tabs; struct screen_sel *sel; + + struct screen_write_collect_line *write_list; }; /* Screen write context. */ @@ -2380,6 +2382,8 @@ void grid_view_delete_cells(struct grid *, u_int, u_int, u_int, u_int); char *grid_view_string_cells(struct grid *, u_int, u_int, u_int); /* screen-write.c */ +void screen_write_make_list(struct screen *); +void screen_write_free_list(struct screen *); void screen_write_start(struct screen_write_ctx *, struct window_pane *, struct screen *); void screen_write_stop(struct screen_write_ctx *); -- cgit