mirror of
https://github.com/tmux/tmux.git
synced 2025-01-09 17:48:48 +00:00
SGR 0 should not end hyperlink, reported by Lucas Trzesniewski.
This commit is contained in:
parent
645bf8b3ab
commit
9e14c1f88d
4
input.c
4
input.c
@ -2065,7 +2065,7 @@ static void
|
|||||||
input_csi_dispatch_sgr(struct input_ctx *ictx)
|
input_csi_dispatch_sgr(struct input_ctx *ictx)
|
||||||
{
|
{
|
||||||
struct grid_cell *gc = &ictx->cell.cell;
|
struct grid_cell *gc = &ictx->cell.cell;
|
||||||
u_int i;
|
u_int i, link;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
if (ictx->param_list_len == 0) {
|
if (ictx->param_list_len == 0) {
|
||||||
@ -2097,7 +2097,9 @@ input_csi_dispatch_sgr(struct input_ctx *ictx)
|
|||||||
|
|
||||||
switch (n) {
|
switch (n) {
|
||||||
case 0:
|
case 0:
|
||||||
|
link = gc->link;
|
||||||
memcpy(gc, &grid_default_cell, sizeof *gc);
|
memcpy(gc, &grid_default_cell, sizeof *gc);
|
||||||
|
gc->link = link;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
gc->attr |= GRID_ATTR_BRIGHT;
|
gc->attr |= GRID_ATTR_BRIGHT;
|
||||||
|
Loading…
Reference in New Issue
Block a user