mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
Use backing grid for word in copy mode for wrapped flags, from someone
in GitHub issue 4447.
This commit is contained in:
@ -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_mode_entry *wme = TAILQ_FIRST(&wp->modes);
|
||||||
struct window_copy_mode_data *data = wme->data;
|
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 *
|
char *
|
||||||
|
Reference in New Issue
Block a user