Skip to content

Commit

Permalink
termdesc: foot has undercurls since 1.18.0 (#2845)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkl authored Jan 16, 2025
1 parent bf5e78c commit 25c08a3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/lib/termdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,14 +792,20 @@ apply_vte_heuristics(tinfo* ti, size_t* tablelen, size_t* tableused){
}

static const char*
apply_foot_heuristics(tinfo* ti, bool* forcesdm, bool* invertsixel){
apply_foot_heuristics(tinfo* ti, size_t *tablelen, size_t *tableused,
bool* forcesdm, bool* invertsixel){
ti->caps.sextants = true;
ti->caps.quadrants = true;
ti->caps.rgb = true;
*forcesdm = true;
if(compare_versions(ti->termversion, "1.8.2") < 0){
*invertsixel = true;
}
if(compare_versions(ti->termversion, "1.18.0") >= 0){
if(add_smulx_escapes(ti, tablelen, tableused)){
return NULL;
}
}
return "foot";
}

Expand Down Expand Up @@ -982,7 +988,8 @@ apply_term_heuristics(tinfo* ti, const char* tname, queried_terminals_e qterm,
newname = apply_vte_heuristics(ti, tablelen, tableused);
break;
case TERMINAL_FOOT:
newname = apply_foot_heuristics(ti, forcesdm, invertsixel);
newname = apply_foot_heuristics(ti, tablelen, tableused,
forcesdm, invertsixel);
break;
case TERMINAL_TMUX:
newname = "tmux"; // FIXME what, oh what to do with tmux?
Expand Down

0 comments on commit 25c08a3

Please sign in to comment.