Skip to content

Commit

Permalink
Fix Incorrect Break Check from de7a488 (radareorg#14723)
Browse files Browse the repository at this point in the history
  • Loading branch information
thestr4ng3r authored and radare committed Jul 31, 2019
1 parent 4cbf27a commit 488b779
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libr/core/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2343,6 +2343,8 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
const char *cmdrep = core->cmdtimes ? core->cmdtimes: "";
orep = rep;

r_cons_break_push (NULL, NULL);

int ocur_enabled = core->print && core->print->cur_enabled;
while (rep-- && *cmd) {
if (core->print) {
Expand Down Expand Up @@ -2376,6 +2378,9 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
}
free (cr);
}

r_cons_break_pop ();

if (tmpseek) {
r_core_seek (core, orig_offset, 1);
core->tmpseek = original_tmpseek;
Expand Down

0 comments on commit 488b779

Please sign in to comment.