mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Preserve colours in selection if the option style is default, GitHub
issue 4498.
This commit is contained in:
5
screen.c
5
screen.c
@ -572,7 +572,10 @@ screen_select_cell(struct screen *s, struct grid_cell *dst,
|
||||
return;
|
||||
|
||||
memcpy(dst, &s->sel->cell, sizeof *dst);
|
||||
|
||||
if (COLOUR_DEFAULT(dst->fg))
|
||||
dst->fg = src->fg;
|
||||
if (COLOUR_DEFAULT(dst->bg))
|
||||
dst->bg = src->bg;
|
||||
utf8_copy(&dst->data, &src->data);
|
||||
dst->attr = dst->attr & ~GRID_ATTR_CHARSET;
|
||||
dst->attr |= src->attr & GRID_ATTR_CHARSET;
|
||||
|
Reference in New Issue
Block a user