-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Narrow in sp-region-ok-p
after doing syntax checks
#805
Conversation
This ensures `sp-point-in-string` returns correctly when invoked from `evil-smartparens` etc - see expez/evil-smartparens#42
I ran the unit tests locally and got the same result (5 failing tests) with and without this change:
|
Yea, this makes sense to me. The string-context check is there as a "fast-fail", basically because if your region spans a bit inside and a bit outside of a string then you can never have balanced expression whatsoever. The failing tests appeared in some newer Emacs version and I still haven't had the chance to look at them, but these are the five "allowed" fails for now. Thanks for all the investigation you put into this! |
Thanks for merging the fix - and for this awesome package 😄 |
This ensures
sp-point-in-string
returns correctly when invoked fromevil-smartparens
etc - see expez/evil-smartparens#42