From 183c3432b05ff8c6de6ec2511d1253032df972d1 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 f25a8e70e..a52aec45f 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.160 2026/09/21 10:22:31 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.161 2026/09/22 16:56:07 nicm Exp $ */ /* * Copyright (c) 2026 Nicholas Marriott @@ -1655,7 +1655,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); }