From 2bb8a85a1ecbf0f0ca467ec85d61e8ff55a31a68 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 22 Feb 2021 00:29:58 -0500 Subject: [PATCH] tree PoC: resize to 1 row in callback #1164 --- src/poc/tree.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/poc/tree.c b/src/poc/tree.c index ad328db543..d0f8347d62 100644 --- a/src/poc/tree.c +++ b/src/poc/tree.c @@ -102,6 +102,11 @@ static nctree_item rads = { static int callback(struct ncplane* ncp, void* curry, int dizzy){ + if(ncplane_dim_y(ncp) > 1){ + if(ncplane_resize_simple(ncp, 1, ncplane_dim_x(ncp))){ + return -1; + } + } ncplane_putstr(ncp, curry); // FIXME (void)dizzy;