Skip to content

Commit

Permalink
Fix a bug where goto_end in a macro command would behave incorrectly …
Browse files Browse the repository at this point in the history
…(addresses #1260)
  • Loading branch information
ahrm committed Dec 17, 2024
1 parent f4110a0 commit fd06141
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdf_viewer/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,9 @@ class MacroCommand : public Command {
if (index == 0 && (num_repeats > 0)) {
commands[index]->set_num_repeats(num_repeats);
}
else {
commands[index]->set_num_repeats(0);
}

commands[index]->run();
performed[index] = true;
Expand Down

0 comments on commit fd06141

Please sign in to comment.