ports/devel/gcli/files/patch-src_cmd_cmd.c
Robert Clausecker 893b259a87 devel/gcli: fix build with liblowdown-1.4.0
Upstream has broken the API in this minor update.

Event:		38C3
2024-12-29 13:19:56 +01:00

15 lines
604 B
C

--- src/cmd/cmd.c.orig 2024-12-28 13:13:41 UTC
+++ src/cmd/cmd.c
@@ -179,9 +179,9 @@ gcli_pretty_print(char const *input, int indent, int m
if (!gcli_config_have_colours(g_clictx))
opts.oflags |= (LOWDOWN_TERM_NOANSI|LOWDOWN_TERM_NOCOLOUR);
- opts.vmargin = 1;
- opts.hmargin = indent - 4; /* somehow there's always 4 spaces being emitted by lowdown */
- opts.cols = maxlinelen;
+ opts.term.vmargin = 1;
+ opts.term.hmargin = indent - 4; /* somehow there's always 4 spaces being emitted by lowdown */
+ opts.term.cols = maxlinelen;
if ((doc = lowdown_doc_new(&opts)) == NULL)
err(1, NULL);