mirror of
https://github.com/tmux/tmux.git
synced 2026-06-21 17:55:21 +00:00
Add a context for cell/palette/hyperlinks when drawing to tty to avoid
passing so much in parameters.
This commit is contained in:
@@ -567,13 +567,8 @@ window_copy_add(struct window_pane *wp, int parse, const char *fmt, ...)
|
||||
|
||||
static void
|
||||
window_copy_init_ctx_cb(__unused struct screen_write_ctx *ctx,
|
||||
struct tty_ctx *ttyctx)
|
||||
__unused struct tty_ctx *ttyctx)
|
||||
{
|
||||
memcpy(&ttyctx->defaults, &grid_default_cell, sizeof ttyctx->defaults);
|
||||
ttyctx->palette = NULL;
|
||||
ttyctx->redraw_cb = NULL;
|
||||
ttyctx->set_client_cb = NULL;
|
||||
ttyctx->arg = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user