Skip to content
Snippets Groups Projects
Commit 4052ad84 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Fix duplicated steps in frontend's answer.

parent 5d769d17
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,9 @@ class Parser(BisonParser):
print self.root_node
if include_step:
return suggestion, self.root_node
# Make sure that the node is cloned, otherwise the next rewrite
# attempt will modify the root node (since it's mutable).
return suggestion, self.root_node.clone()
return self.root_node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment