From e0dd40f812fdbc9a8f7dfa2810d8db3666ce1c66 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 27 Jun 2026 12:27:43 +0000 Subject: [PATCH] Clear lines before writing in copy mode to avoid leaving stray text when new line is shorter than old. --- window-copy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/window-copy.c b/window-copy.c index 4ba791e75..0a37c5e9d 100644 --- a/window-copy.c +++ b/window-copy.c @@ -5154,6 +5154,9 @@ window_copy_write_line(struct window_mode_entry *wme, else content_sx = sx; + screen_write_cursormove(ctx, 0, py, 0); + screen_write_clearline(ctx, 8); + ft = format_create_defaults(NULL, NULL, NULL, NULL, wp); style_apply(&gc, oo, "copy-mode-position-style", ft);