Use iterator to avoid walking all spans every time.

This commit is contained in:
Nicholas Marriott
2026-06-16 22:44:43 +01:00
parent 20ef8bd1c9
commit 2af751d78d
3 changed files with 15 additions and 7 deletions

2
tmux.h
View File

@@ -3367,7 +3367,7 @@ void screen_write_alternateoff(struct screen_write_ctx *,
void screen_redraw_screen(struct client *);
void screen_redraw_pane(struct client *, struct window_pane *);
void screen_redraw_pane_scrollbar(struct client *, struct window_pane *);
int screen_redraw_get_span_cell_type(struct redraw_span *, u_int);
int screen_redraw_get_span_cell_type(struct redraw_span **, u_int);
/* screen.c */
void screen_init(struct screen *, u_int, u_int, u_int);