add failing test to highlight removeWhenPresent misbehavior #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hello again! 👋
in testing your patches from #17 i spotted another edge case that makes it impossible to successfully toggle marks.
w/
{removeWhenPresent:false}i would expect the initial execution of the command to append the mark to the newly selected whitespace and the second call to remove the mark from the entire selection.in actuality, the mark cannot be added to the trailing whitespace, and hence cannot be removed from the actual word.
Thanks for spotting that. This patch should help.
indeed it does. thanks for all the effort you put into maintaining these libraries 🙏
Pull request closed