Handle recursive pdc calls

This commit is contained in:
pancake 2018-03-14 12:31:16 +01:00
parent 2f310ab38f
commit 6b633ae0aa
2 changed files with 2 additions and 1 deletions

View File

@ -984,6 +984,7 @@ static int cb_cmdpdc(void *user, void *data) {
RCore *core = (RCore *) user;
RConfigNode *node = (RConfigNode *)data;
if (node->value[0] == '?') {
r_cons_printf ("pdc\n");
return false;
}
return true;

View File

@ -163,7 +163,7 @@ static void find_and_change (char* in, int len) {
R_API int r_core_pseudo_code(RCore *core, const char *input) {
const char *cmdPdc = r_config_get (core->config, "cmd.pdc");
if (cmdPdc && *cmdPdc) {
if (cmdPdc && *cmdPdc && !strstr (cmdPdc, "pdc")) {
return r_core_cmdf (core, "%s%s", cmdPdc, input);
}