Skip to content

Drag sexp backwards command causes unexpected outcome in specific situation #2735

Open
@bpringe

Description

@bpringe
(defn mirror-tree
  [tree]
  (when tree
    (let [[root left right] tree]
      [root (mirror-tree left) |(mirror-tree right)])))

When I put my cursor at | in the above code, in the bottom vector before the last sexp, and I run the command to drag the sexp backwards, it moves it to the front of the vector, rather than swapping it with the previous, as I expect.

Same thing happens if I put that code in a file by itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpareditParedit and structural editing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions