From 8824495924eb344c40d37a5d92eb31159727e486 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 28 Dec 2020 01:14:14 -0500 Subject: [PATCH] uniblock demo: properly set progress --- src/demo/unicodeblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/unicodeblocks.c b/src/demo/unicodeblocks.c index c45335005..b1a8da19e 100644 --- a/src/demo/unicodeblocks.c +++ b/src/demo/unicodeblocks.c @@ -281,7 +281,7 @@ int unicodeblocks_demo(struct notcurses* nc){ return -1; } int err; - if( (err = fade_block(nc, nn, &subdelay, pbar, sindex, sizeof(blocks) / sizeof(*blocks))) ){ // destroys nn + if( (err = fade_block(nc, nn, &subdelay, pbar, sindex + 1, sizeof(blocks) / sizeof(*blocks))) ){ // destroys nn return err; } // for a 32-bit wchar_t, we would want up through 24 bits of block ID. but