Closed tyeen closed 9 years ago
When the cursor is ahead of the first character of the current line, and hit command+delete, Xcode crashes.
The reason is that the "caretLocation" is smaller than the "codeStartRange.location", and the calculated "deleteRange"'s length is minus.
Great job! Thank you for this fix.
When the cursor is ahead of the first character of the current line, and hit command+delete, Xcode crashes.
The reason is that the "caretLocation" is smaller than the "codeStartRange.location", and the calculated "deleteRange"'s length is minus.