]> git.feebdaed.xyz Git - 0xmirror/radare2.git/commitdiff
Fix reset after bytes regression in disasm
authorpancake <pancake@nopcode.org>
Fri, 19 Dec 2025 23:34:39 +0000 (00:34 +0100)
committerpancake <pancake@nopcode.org>
Fri, 19 Dec 2025 23:34:39 +0000 (00:34 +0100)
libr/core/disasm.c

index ff44c2d89de4db938182e5bf4b631f66f6c96856..b764ac61bcdcaa2091a748bb0962b8a2f1804ff8 100644 (file)
@@ -4136,8 +4136,12 @@ static void ds_print_bytes(RDisasmState *ds) {
                        }
                        free (str);
                        if (ds->show_color && ds->show_color_bytes && !ds->show_bytes_ascmt) {
-                               str = r_str_newf ("%s"Color_RESET, nstr);
-                               R_FREE (nstr);
+                               if (ds->colorop) {
+                                       str = nstr;
+                               } else {
+                                       str = r_str_newf ("%s"Color_RESET, nstr);
+                                       R_FREE (nstr);
+                               }
                        } else {
                                str = nstr;
                        }