Clear lines before writing in copy mode to avoid leaving stray text when

new line is shorter than old.
This commit is contained in:
nicm
2026-06-27 12:27:43 +00:00
parent 79f0f97495
commit e0dd40f812

View File

@@ -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);