mirror of
https://github.com/tmux/tmux.git
synced 2026-07-03 10:12:31 +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
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user