afn without arg show current function name

This commit is contained in:
pancake 2016-08-19 14:15:10 +02:00
parent b5d1bbf333
commit 22b78d5c73

View File

@ -1291,6 +1291,14 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
}
}
break;
case 0:
{
RAnalFunction *fcn = r_anal_get_fcn_in (core->anal, core->offset, -1);
if (fcn) {
r_cons_printf ("%s\n", fcn->name);
}
}
break;
case ' ':
{
ut64 off = core->offset;