]> git.feebdaed.xyz Git - 0xmirror/radare2.git/commitdiff
Fix colorized ops with byte colors when scr.color.ops=false ##disasm
authorpancake <trufae@gmail.com>
Fri, 19 Dec 2025 22:30:41 +0000 (23:30 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Dec 2025 22:30:41 +0000 (23:30 +0100)
libr/core/disasm.c

index 1c8356a7e0bcfb0dede2e4eb928d77c5b60ddf57..7ba58eaf55470d7e362ee6d209f59b15df497fe6 100644 (file)
@@ -4121,7 +4121,12 @@ static void ds_print_bytes(RDisasmState *ds) {
                                pad[0] = 0;
                        }
                        free (str);
-                       str = nstr;
+                       if (ds->show_color_bytes && !ds->show_bytes_ascmt) {
+                               str = r_str_newf ("%s"Color_RESET, nstr);
+                               R_FREE (nstr);
+                       } else {
+                               str = nstr;
+                       }
                }
        }
        if (ds->show_bytes_align) {