(-fixAttachmentAttributesInRange:): Update end index when a character is deleted.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15935 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-02-11 15:39:20 +00:00
parent e8ca345d45
commit ea14bf8170
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,14 @@
2003-02-11 16:33 Alexander Malmberg <alexander@malmberg.org>
* Source/NSAttributedString.m (-fixAttachmentAttributeInRange:):
Update end index when a character is deleted.
* Source/NSTextStorage.m (-processEditing): Make sure we always
give a valid range and delta to the layout managers.
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):
Clamp the selected range to the text storage's length.
2003-02-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBrowser.m: Rewrote and documented the ([-setPath:]) method

View file

@ -1018,6 +1018,7 @@ documentAttributes: (NSDictionary **)dict
{
[self deleteCharactersInRange: NSMakeRange (range.location, 1)];
range.length--;
end--;
}
location = NSMaxRange (range);