-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always check selection range when creating undo levels
Sometimes `getSelection` can have an empty range, causing `getRangeAt` to throw an error. This catches that situation and adds checks in all places that use it.
- Loading branch information
1 parent
a2f81fa
commit aae9c06
Showing
1 changed file
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters