From 92d29e54f404a0b07517b90e577feba7d98d1700 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 22 Sep 2026 16:56:07 +0000 Subject: [PATCH] Get x and y the right way round, fixes crash when opening a mode prompt when the client is offset into the window; may be the crash reported by sthen@. --- screen-redraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screen-redraw.c b/screen-redraw.c index fdb7acb8a..3fb612a7f 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.159 2026/09/09 08:31:42 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.161 2026/09/22 16:56:07 nicm Exp $ */ /* * Copyright (c) 2026 Nicholas Marriott @@ -1673,7 +1673,7 @@ redraw_draw_pane_prompt(struct redraw_draw_ctx *dctx, struct window_pane *wp) prompt_draw(wp->prompt, &pdd); screen_write_stop(&ctx); - tty_draw_line(tty, &screen, 0, offset, width, px, cy, NULL); + tty_draw_line(tty, &screen, offset, 0, width, px, cy, NULL); screen_free(&screen); }