mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 13:04:22 +00:00
Clear lines before writing in copy mode to avoid leaving stray text when
new line is shorter than old.
This commit is contained in:
@@ -5154,6 +5154,9 @@ window_copy_write_line(struct window_mode_entry *wme,
|
|||||||
else
|
else
|
||||||
content_sx = sx;
|
content_sx = sx;
|
||||||
|
|
||||||
|
screen_write_cursormove(ctx, 0, py, 0);
|
||||||
|
screen_write_clearline(ctx, 8);
|
||||||
|
|
||||||
ft = format_create_defaults(NULL, NULL, NULL, NULL, wp);
|
ft = format_create_defaults(NULL, NULL, NULL, NULL, wp);
|
||||||
|
|
||||||
style_apply(&gc, oo, "copy-mode-position-style", ft);
|
style_apply(&gc, oo, "copy-mode-position-style", ft);
|
||||||
|
|||||||
Reference in New Issue
Block a user