You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That final line should just fall through to the following (if (setq bnd (lispy--bounds-string)) ... block.
But that whole function is too hairy to understand; it's clearly grown over time. So this part… deletes a single backslash after the killed word, but only if point is in a string and immediately following a space (?!) If I tried to fix it I'd be too afraid of breaking something else.
* lispy.el (lispy-backward-kill-word): When looking back at ") ", we
would take the first if's then branch because the char before is
whitespace. However, this branch would call backward-kill-word which
doesn't skip over delimiters. Prevent this situation by taking the then
branch only if we're looking back at a word or symbol constituent
followed by whitespace, in which case backward-kill-word behaves
correctly. If we're not looking back at such a pattern, we end up in the
else branch, which does skip over delimiters.
Fixesabo-abo#584
[[:a] ]
If I have the point on the second line after the space and before the close bracket then lispy-backward-kill-word will create
another example
gives
[{:a :]
I'm on the latest emacs in master c24766c4d59bc7d9f583f299b1558e2356fba933 from Tue Mar 23 and the latest from lispy 38a7df4 Thu Jan 21.
The text was updated successfully, but these errors were encountered: