summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-17 11:39:16 -0300
committerAndrés <andmarti@gmail.com>2021-03-17 11:39:16 -0300
commit2af89198ff96fc017e89f66a92a6594d5f576e49 (patch)
tree36bbbd43f1122f8bd033a56938a0b6651d76098b
parentff24c776ccb0924def700ae7f014b70d7c6c91fb (diff)
removed unneeded error message
-rw-r--r--src/color.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/color.c b/src/color.c
index 1ab5308..b55043f 100644
--- a/src/color.c
+++ b/src/color.c
@@ -601,7 +601,8 @@ int define_color(char * color, int r, int g, int b) {
#if defined(NCURSES) && defined(USECOLORS)
if (atoi(get_conf_value("nocurses"))) {
- sc_error("Could not define color %s. Not using NCURSES.", color);
+ // this should not be alerted.
+ //sc_error("Could not define color %s. Not using NCURSES.", color);
return -1;
} else if (! has_colors () || ! can_change_color() || COLORS < 9) {
sc_error("Could not define color %s. Not supported by terminal.", color);