Fixes #14900: xdot type commands functional now (#14902)

* Fixes #14900: xdot type commands functional now
This commit is contained in:
dodococo 2019-08-27 08:30:28 +05:30 committed by Anton Kochkov
parent ab8dfab3e4
commit 64c01578a2
2 changed files with 6 additions and 5 deletions

View File

@ -1251,10 +1251,10 @@ static char *core_anal_graph_label(RCore *core, RAnalBlock *bb, int opts) {
cmdstr = r_core_cmd_str (core, cmd);
r_config_set_i (core->config, "scr.color", scrColor);
r_config_set_i (core->config, "scr.utf8", scrUtf8);
if (cmdstr) {
str = r_str_escape_dot (cmdstr);
free (cmdstr);
}
}
if (cmdstr) {
str = r_str_escape_dot (cmdstr);
free (cmdstr);
}
return str;
}

View File

@ -778,6 +778,7 @@ static void __print_diff_graph(RCore *c, ut64 off, int gmode) {
case GRAPH_INTERACTIVE_MODE:
__generate_graph (c, off);
r_core_agraph_print (c, use_utf8, "v");
r_cons_reset_colors ();
break;
case GRAPH_SDB_MODE:
__generate_graph (c, off);
@ -797,9 +798,9 @@ static void __print_diff_graph(RCore *c, ut64 off, int gmode) {
default:
__generate_graph (c, off);
r_core_agraph_print (c, use_utf8, "");
r_cons_reset_colors ();
break;
}
r_cons_reset_colors ();
}
R_API int r_main_radiff2(int argc, char **argv) {