cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

Slurp with string gives a space at the front of the string #983

Open danielcompton opened 9 years ago

danielcompton commented 9 years ago
(str "|" abc)

with "slurp forwards" gives:

(str "| abc")

There probably shouldn't be a space at the start of the string as this is Clojure whitespace, not semantically part of the symbol that was slurped. Thanks for working on this btw, the new structural editing is really good.

Relates to #93

cursive-ide commented 9 years ago

This is because that slurp and barf work by moving the delimiter. In the case of sexps, any whitespace issues then get tidied up by reformatting, but that doesn't work on strings. I'll see if I can fix this up.