abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.2k stars 130 forks source link

marking and raising messes up mark if it's not correctly indented #583

Open rgkirch opened 3 years ago

rgkirch commented 3 years ago
(def thing
       [:first
   :second])

If I mark :second with M-m (lispy-mark-symbol) and then raise with r (special-lispy-raise) then the marked region is messed up. There is no issue if the code is properly indented but with the extra indentation before [:first like I have above, the mark will change to mark just the "nd" in "second" instead of the full word. The size of the mark after raise changes with the amount of indentation preceding '[:first`.

I'm on the latest emacs in master c24766c4d59bc7d9f583f299b1558e2356fba933 from Tue Mar 23 and the latest from lispy 38a7df4cbb16cfe3d62dc8ea98b50e2d9a572e58 Thu Jan 21.