1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-15 15:58:50 +00:00

Use backing grid for word in copy mode for wrapped flags, from someone

in GitHub issue 4447.
This commit is contained in:
nicm 2025-04-03 11:51:27 +00:00
parent 4bf38da4d4
commit 47dff97834

View File

@ -869,9 +869,9 @@ window_copy_get_word(struct window_pane *wp, u_int x, 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_word(gd, x, gd->hsize + y));
return (format_grid_word(gd, x, gd->hsize + y - data->oy));
}
char *