Skip to content

Commit

Permalink
ChafaTermInfo: Let inner TE affect passthrough_needed
Browse files Browse the repository at this point in the history
Leaving this out caused a regression where kitty passthrough would
not be used in tmux.
  • Loading branch information
hpjansson committed Nov 11, 2024
1 parent 7a46a7d commit 7598908
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chafa/chafa-term-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,12 @@ chafa_term_info_chain (ChafaTermInfo *outer, ChafaTermInfo *inner)
}
}

for (i = 0; i < CHAFA_PIXEL_MODE_MAX; i++)
chained->pixel_passthrough_needed [i]
= inner->pixel_passthrough_needed [i] | outer->pixel_passthrough_needed [i];

chained->safe_symbol_tags |= inner->safe_symbol_tags & outer->safe_symbol_tags;

outer_name = chafa_term_info_get_name (outer);
inner_name = chafa_term_info_get_name (inner);

Expand Down

0 comments on commit 7598908

Please sign in to comment.