From e0d0f3a7d2f7c6fa4055aa8acc60fd34e2af2f51 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 15 Jun 2026 11:45:51 +0000 Subject: [PATCH] Use correct x position when drawing clipped line. --- usr.bin/tmux/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index b68e7eb7adb..f126c871a5d 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.472 2026/06/15 07:40:45 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.473 2026/06/15 11:45:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1444,7 +1444,7 @@ tty_cmd_redrawline(struct tty *tty, const struct tty_ctx *ctx) rr = &r->ranges[j]; if (rr->nx == 0) continue; - tty_draw_line(tty, ctx->s, i + rr->px - x, + tty_draw_line(tty, ctx->s, ctx->ocx + i + rr->px - x, ctx->ocy, rr->nx, rr->px, ry, &ctx->style_ctx); } }