mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-15 01:10:01 +00:00
Fix nocolor problem in XREFs in disasm
This commit is contained in:
parent
38127e9f43
commit
4d1ba3717f
@ -575,7 +575,7 @@ static void handle_show_xrefs (RCore *core, RDisasmState *ds) {
|
||||
|
||||
if (r_list_length (xrefs)> ds->maxrefs) {
|
||||
beginline (core, ds, f);
|
||||
r_cons_printf ("%s; XREFS: ", ds->pal_comment);
|
||||
r_cons_printf ("%s; XREFS: ", ds->show_color? ds->pal_comment: "");
|
||||
r_list_foreach (xrefs, iter, refi) {
|
||||
r_cons_printf ("%s 0x%08"PFMT64x" ",
|
||||
r_anal_xrefs_type_tostring (refi->type), refi->addr);
|
||||
@ -583,7 +583,8 @@ static void handle_show_xrefs (RCore *core, RDisasmState *ds) {
|
||||
if (iter->n) {
|
||||
r_cons_newline ();
|
||||
beginline (core, ds, f);
|
||||
r_cons_printf ("%s; XREFS: ", ds->pal_comment);
|
||||
r_cons_printf ("%s; XREFS: ",
|
||||
ds->show_color? ds->pal_comment: "");
|
||||
}
|
||||
count = 0;
|
||||
} else count++;
|
||||
|
Loading…
Reference in New Issue
Block a user