Open mrkam2 opened 8 months ago
Thanks @mrkam2!
I can take a peek sometime soon!
I'm starting to take a look at this one!
global-find-by-node
will be broken for newly added nodes.Thanks again for reporting, @mrkam2. Folks seem to be starting to use the paredit API a bit, and you've uncovered some very interesting flaws.
Version
rewrite-clj/rewrite-clj {:mvn/version "1.1.47"}
Platform Clojure version:
1.11.1
Symptom Two issues:
rewrite-clj.paredit/kill
incorrectly positions the zipper after performing the operation.Reproduction
Actual behavior
:wrong-pos
.[:wrong-pos 1 :nil-meta ]
.Expected behavior
2
.[:wrong-pos 1 :nil-meta 2]
Diagnosis
global-find-by-node
search that compares nodes meta not taking into account that new nodes havenil
meta.Action Let me know if a PR is preferred.