From c2c61172f24d10fb1098d05a1bacddeac881c085 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 12 Dec 2021 05:20:37 -0500 Subject: [PATCH] [tfman] free up docstructure --- src/man/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/man/main.c b/src/man/main.c index 5c379ea34..808ee3519 100644 --- a/src/man/main.c +++ b/src/man/main.c @@ -758,10 +758,10 @@ draw_domnode(struct ncplane* p, const pagedom* dom, const pagenode* n, // very fast moves. static int draw_content(struct ncplane* stdn, struct ncplane* p){ - const pagedom* dom = ncplane_userptr(p); + pagedom* dom = ncplane_userptr(p); unsigned wrotetext = 0; // unused by us - struct docstructure* ds = docstructure_create(stdn); - if(ds == NULL){ + dom->ds = docstructure_create(stdn); + if(dom->ds == NULL){ return -1; } return draw_domnode(p, dom, dom->root, &wrotetext);