tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

c!! adds newlines #146

Closed gfixler closed 10 years ago

gfixler commented 10 years ago

If I have this:

(* (+ 1 2) (+ 3 4))

And I'm in the (+ 3 4) form, and this is on line 5, and I do c!!, I get:

(* (+ 1 2)

7)

I seems to be adding n newlines before the result, where n is the line I'm currently on. Thus, it works perfectly on the first line of the buffer, and linearly worse as I move down the lines.

I've done a verb map ! and come up empty.

tpope commented 10 years ago

Artifact of me newline padding the source to produce the correct stacktrace. Fixed but might have introduced an edge case or 2.