Skip to content

Commit

Permalink
Fix color when scr.color=0 (#10768)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil authored and radare committed Jul 18, 2018
1 parent 9a06b35 commit c5ccda6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libr/util/print.c
Expand Up @@ -480,7 +480,9 @@ R_API char* r_print_hexpair(RPrint *p, const char *str, int n) {
if (i == ocur - n) {
memcat (d, Color_RESET);
}
memcat (d, lastcol);
if (colors) {
memcat (d, lastcol);
}
if (i >= cur - n && i < ocur - n) {
memcat (d, Color_INVERT);
}
Expand Down

0 comments on commit c5ccda6

Please sign in to comment.