From b3f4fbdf51e431c689b0926c53054dc90cf10682 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 16 Jan 2020 19:25:50 -0500 Subject: [PATCH] fix fallin' bug --- src/demo/fallin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/demo/fallin.c b/src/demo/fallin.c index 7acf1a34b..61ab465f3 100644 --- a/src/demo/fallin.c +++ b/src/demo/fallin.c @@ -59,9 +59,9 @@ int fallin_demo(struct notcurses* nc){ if(ncplane_at_yx(notcurses_stdplane(nc), usey, usex, &c) < 0){ return -1; } - const char* con = cell_extended_gcluster(notcurses_stdplane(nc), &c); - fprintf(stderr, "%s\n", con); - cell_load(n, &c, con); + if(!cell_simple_p(&c)){ + cell_load(n, &c, cell_extended_gcluster(notcurses_stdplane(nc), &c)); + } if(ncplane_putc_yx(n, usey - y, usex - x, &c) < 0){ return -1; }