From 5e06ee1d78c5bc90b69beab192ba6851843a383e Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Wed, 17 Oct 2018 22:54:03 +0200 Subject: [PATCH] tyfuzz: support hyperlinks --- src/bin/tyfuzz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/tyfuzz.c b/src/bin/tyfuzz.c index 454a8dab..e9e85cd2 100644 --- a/src/bin/tyfuzz.c +++ b/src/bin/tyfuzz.c @@ -84,6 +84,10 @@ _termpty_init(Termpty *ty) ty->fd = STDIN_FILENO; ty->fd_dev_null = open("/dev/null", O_WRONLY|O_APPEND); assert(ty->fd_dev_null >= 0); + ty->hl.bitmap = calloc(1, HL_LINKS_MAX / 8); /* bit map for 1 << 16 elements */ + assert(ty->hl.bitmap); + /* Mark id 0 as set */ + ty->hl.bitmap[0] = 1; } static void