/c supports cmd.hit

This commit is contained in:
pancake 2017-03-09 15:34:35 +01:00
parent 43b1530ffc
commit 4e037748e8

View File

@ -1742,10 +1742,14 @@ static void do_asm_search(RCore *core, struct search_parameters *param, const ch
param->from, param->to, maxhits, regexp);
}
if (hits) {
const char *cmdhit = r_config_get (core->config, "cmd.hit");
r_list_foreach (hits, iter, hit) {
if (r_cons_is_breaked ()) {
break;
}
if (cmdhit && *cmdhit) {
r_core_cmdf (core, "%s @ 0x%"PFMT64x, cmdhit, hit->addr);
}
switch (outmode) {
case 'j':
if (count > 0) r_cons_printf (",");