Skip to content

Commit

Permalink
tree PoC: resize to 1 row in callback #1164
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Feb 22, 2021
1 parent e69be24 commit 2bb8a85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/poc/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bb8a85

Please sign in to comment.