From 3e3c8c151447f58e19b9338b664a47f531107c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Cruz?= Date: Tue, 18 Aug 2020 14:09:01 +0200 Subject: [PATCH] minor fix: use already defined variable --- include/notcurses/notcurses.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 0102a07be..43fef07df 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -1717,7 +1717,7 @@ channels_blend(unsigned c1, unsigned c2, unsigned* blends){ bool c2default = channel_default_p(c2); if(*blends == 0){ // don't just return c2, or you set wide status and all kinds of crap - if(channel_default_p(c2)){ + if(c2default){ channel_set_default(&c1); }else{ channel_set_rgb(&c1, rsum, gsum, bsum);