Add link=/nolink to styles to specific a hyperlink. GitHub issue 4280

from Moritz Angermann.
This commit is contained in:
nicm
2026-06-29 17:08:52 +00:00
parent 95719e342d
commit bcd54d12d8
5 changed files with 82 additions and 6 deletions

3
tmux.h
View File

@@ -984,6 +984,8 @@ struct style {
int pad;
enum style_default_type default_type;
u_int link;
};
/* Cursor style. */
@@ -3960,6 +3962,7 @@ int style_parse(struct style *,const struct grid_cell *,
int style_parse_colour(struct style *,
const struct grid_cell *, const char *);
const char *style_tostring(struct style *);
const char *style_link(struct style *);
struct style *style_add(struct grid_cell *, struct options *,
const char *, struct format_tree *);
void style_apply(struct grid_cell *, struct options *,