kovisoft / paredit

Official mirror of Paredit versions released on vim.org
84 stars 23 forks source link

Fix an issue with cc at the start of a line. #4

Closed sethyuan closed 10 years ago

sethyuan commented 10 years ago

Hi @kovisoft,

I wonder what's the purpose of startcol's branching logic? Because I find it doing wrong cc behavior if I do cc at the start of a line (at col 1, that is).

e.g.

(let [a b]
  (print a)
| (print b))

If I press cc where |, I get

(let [a b]
  (print a)
 | )

However, if I remove the startcol's logic, everything seems to be fine. Also, this is confirmed in both Vim 7.4.x and Vim 7.2.x. I don't have Vim 7.3.x so I can't tell how it behaves on it.

kovisoft commented 10 years ago

Sorry, I tried to merge in the wrong order, so finally I committed your changes instead of merging.

sethyuan commented 10 years ago

It's OK. I'll close this pull request then.