Skip to content
This repository

Fixes a bug where location of the selection after a spell-checked replac... #14

Open
wants to merge 1 commit into from

1 participant

Jared Crawford
Jared Crawford

...ement is beyond the length of the string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 11, 2012
Jared Crawford JaredCrawford Fixes a bug where location of the selection after a spell-checked rep…
…lacement is beyond the length of the string.
38d4203
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  EGOTextView/EGOTextView.m
1  EGOTextView/EGOTextView.m
@@ -1444,6 +1444,7 @@ - (void)deleteBackward {
1444 1444 [_mutableAttributedString beginEditing];
1445 1445 [_mutableAttributedString deleteCharactersInRange:self.correctionRange];
1446 1446 [_mutableAttributedString endEditing];
  1447 + selectedNSRange.location = self.correctionRange.location;
1447 1448 self.correctionRange = NSMakeRange(NSNotFound, 0);
1448 1449 selectedNSRange.length = 0;
1449 1450

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.