-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi,
When calling the smart commands from keybindings with a region selected, smart-hungry-delete-forward-char will also delete the char after point, and smart-hungry-delete-backward-char also deletes the char before point. If the char is whitespace, it will hungrily delete it.
For example, with ([] being point and | mark):
ab[]cde|fg
pressing backspace results in
a[]fg
instead of
ab[]fg
The weird thing is that it only happens if the functions are called from a bound key. Using M-x smart-hungry-delete-XXX-char works fine in both cases, deleting only the region.
It also appears to be two actions for undo: one undo will undo the character deletion, the second will undo the region deletion.
I don't know if it is related to #3 (regarding delete-selection-mode).
Cheers!
blue0513 and EricControls
Metadata
Metadata
Assignees
Labels
No labels