Skip to content

Commit

Permalink
FIX: cannot interrupt empty parse's while rule with CTRL-C
Browse files Browse the repository at this point in the history
This was causing infinite loop: `parse "" [while []]`

related to: Oldes/Rebol-issues#2229
  • Loading branch information
Oldes committed Mar 31, 2020
1 parent 2a4f798 commit fcd4dcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/u-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,9 @@ void Print_Parse_Index(REBCNT type, REBVAL *rules, REBSER *series, REBCNT index)
mincount = maxcount = 1;

}

if (Eval_Signals) Do_Signals();

return index;

bad_rule:
Expand Down

0 comments on commit fcd4dcc

Please sign in to comment.