Skip to content

Commit

Permalink
Fix bug in Plot by not cutting away the appended options
Browse files Browse the repository at this point in the history
  • Loading branch information
axkr committed May 23, 2024
1 parent ed3cfd9 commit 83453c6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,18 @@ public IExpr evaluate(IAST ast, final int argSize, final IExpr[] options,
}
return F.NIL;
}
if (argSize > 0 && argSize < ast.argSize()) {
ast = ast.copyUntil(argSize + 1);
}
final OptionArgs optionArgs = new OptionArgs(ast.topHead(), ast, 3, engine, true);

final OptionArgs optionArgs = new OptionArgs(ast.topHead(), ast, 3, engine, true);
if (optionArgs.isTrue(S.JSForm)) {
IExpr temp = S.Manipulate.of(engine, ast);
if (temp.headID() == ID.JSFormData) {
return temp;
}
return F.NIL;
}
if (argSize > 0 && argSize < ast.argSize()) {
ast = ast.copyUntil(argSize + 1);
}
IExpr function = ast.arg1();
if (ast.arg2().isList3()) {
final IAST rangeList = (IAST) ast.arg2();
Expand Down

0 comments on commit 83453c6

Please sign in to comment.