Skip to content

Commit

Permalink
fix: πŸ› should copy tree type when creating an action
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanonymous-GitHub committed Aug 19, 2024
1 parent ac74369 commit 0a40262
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class ChawatheScriptGenerator(
leftTarget = generateNewEmptyNode()
leftTarget.info =
leftTarget.info.copy(
type = rightTarget.info.type,
type = rightTarget.info.type.copy(),
text = rightTarget.info.text
)
performInsertActionFor(leftTarget, partnerOfParentOfRightTarget, rightTarget)
Expand All @@ -246,7 +246,7 @@ class ChawatheScriptGenerator(
leftTarget.info.text != rightTarget.info.text ||
leftTarget.info.type != rightTarget.info.type
) {
performUpdateActionFor(leftTarget, rightTarget.info.type, rightTarget.info.text)
performUpdateActionFor(leftTarget, rightTarget.info.type.copy(), rightTarget.info.text)
}

val parentOfLeftTarget = leftTarget.getParent()
Expand Down

0 comments on commit 0a40262

Please sign in to comment.