Skip to content

Bug in certain case of ds( #232

@jeaye

Description

@jeaye

Hey Tim,

I've hit this one a bunch of times and never saw a pattern in what was going on until recently. Here's a minimal reproduction (Clojure code):

(map (fn [x]
       (|f|oo x
            ))
     bar)

I'm using |f| to represent the cursor is on f. If I then run ds( or ds) or dsb I get the following:

(map foo x
     bar)

However, I would expect to get this instead:

(map (fn [x]
       foo x
       )
     bar)

The important part here is that the closing delimiter of the form getting its parens deleted is on a new line. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions