From 31508228bc26306a7fbf138c9df2e7210e9e5a37 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 20 Aug 2018 19:34:04 +0100 Subject: Use the y offset from the context which has already been adjusted for the status line, also make tty_clamp_line adjust the y position. --- screen-write.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index b9db16a9..4f5bee61 100644 --- a/screen-write.c +++ b/screen-write.c @@ -94,7 +94,7 @@ void screen_write_start(struct screen_write_ctx *ctx, struct window_pane *wp, struct screen *s) { - char tmp[16]; + char tmp[32]; u_int y; memset(ctx, 0, sizeof *ctx); @@ -113,8 +113,10 @@ screen_write_start(struct screen_write_ctx *ctx, struct window_pane *wp, ctx->scrolled = 0; ctx->bg = 8; - if (wp != NULL) - snprintf(tmp, sizeof tmp, "pane %%%u", wp->id); + if (wp != NULL) { + snprintf(tmp, sizeof tmp, "pane %%%u (at %u,%u)", wp->id, + wp->xoff, wp->yoff); + } log_debug("%s: size %ux%u, %s", __func__, screen_size_x(ctx->s), screen_size_y(ctx->s), wp == NULL ? "no pane" : tmp); } -- cgit