mirror of
https://github.com/tmux/tmux.git
synced 2026-05-23 13:20:14 +00:00
Switch to use backing grid not copy mode's grid for copy line, GitHub
issue 4995.
This commit is contained in:
@@ -898,9 +898,9 @@ window_copy_get_line(struct window_pane *wp, u_int y)
|
||||
{
|
||||
struct window_mode_entry *wme = TAILQ_FIRST(&wp->modes);
|
||||
struct window_copy_mode_data *data = wme->data;
|
||||
struct grid *gd = data->screen.grid;
|
||||
struct grid *gd = data->backing->grid;
|
||||
|
||||
return (format_grid_line(gd, gd->hsize + y));
|
||||
return (format_grid_line(gd, gd->hsize + y - data->oy));
|
||||
}
|
||||
|
||||
char *
|
||||
|
||||
Reference in New Issue
Block a user