diff options
author | mongo <andmarti@gmail.com> | 2017-12-27 10:18:34 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2017-12-27 10:18:34 -0300 |
commit | 72312f8bbd7fdf8e8771f4b674f3bf73b9e339a0 (patch) | |
tree | b37862fdcdefe53ee5aa74c27599300437c43c53 | |
parent | 61a4ae63d3c9444af59755c58b56bc59bd7ef186 (diff) |
work on issue 228
-rw-r--r-- | src/color.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/color.c b/src/color.c index eed3543..5723a12 100644 --- a/src/color.c +++ b/src/color.c @@ -249,6 +249,7 @@ void free_colors_param_dict() { */ void chg_color(char * str) { + if (atoi((char *) get_conf_value("nocurses"))) return; // Create key-value dictionary for the content of the string struct dictionary * d = create_dictionary(); @@ -272,11 +273,9 @@ void chg_color(char * str) { // Validate the values for those keys are correct if ( - (get(d_colors_param, get(d, "bg")) == NULL) || (get(d_colors_param, get(d, "type")) == NULL) || (get(d_colors_param, get(d, "fg")) == NULL) || (get(d_colors_param, get(d, "bg")) == NULL) || - (get(d_colors_param, get(d, "type")) == NULL) || (atoi(get(d_colors_param, get(d, "fg"))) > WHITE) || (atoi(get(d_colors_param, get(d, "bg"))) > WHITE) ) { |