Fix duplicated steps in frontend's answer.

parent 5d769d17
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment