We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the strict mode is on and delete-selection-mode is enabled, we should not allow to delete regions that would break structure.
delete-selection-mode
Strict mode checks are ignored and it is possible to delete region leading to breakage.
Enable the two modes, then select text and hit backspace.
(put 'sp-backward-delete-char 'delete-selection 'supersede) (put 'sp-delete-char 'delete-selection 'supersede)
should use a callback instead of supersede, and return nil if we can't delete the region, and return supersede when we can.
supersede
The text was updated successfully, but these errors were encountered:
7a8dff4
No branches or pull requests
Expected behavior
If the strict mode is on and
delete-selection-mode
is enabled, we should not allow to delete regions that would break structure.Actual behavior
Strict mode checks are ignored and it is possible to delete region leading to breakage.
Steps to reproduce the problem
Enable the two modes, then select text and hit backspace.
Solution
should use a callback instead of
supersede
, and return nil if we can't delete the region, and returnsupersede
when we can.The text was updated successfully, but these errors were encountered: