Rework reflow code so it does not do so much allocation which should be faster

with large histories.
This commit is contained in:
Nicholas Marriott
2013-02-10 18:15:30 +00:00
parent f1ce95915c
commit 99cc0015f8
3 changed files with 129 additions and 38 deletions

2
tmux.h
View File

@ -1966,7 +1966,7 @@ void grid_move_cells(struct grid *, u_int, u_int, u_int, u_int);
char *grid_string_cells(struct grid *, u_int, u_int, u_int);
void grid_duplicate_lines(
struct grid *, u_int, struct grid *, u_int, u_int);
u_int grid_reflow(struct grid *, const struct grid *, u_int);
u_int grid_reflow(struct grid *, struct grid *, u_int);
/* grid-cell.c */
u_int grid_cell_width(const struct grid_cell *);