From ea14bf8170a6e8072b336c2ac2e22d248e817605 Mon Sep 17 00:00:00 2001 From: Alexander Malmberg Date: Tue, 11 Feb 2003 15:39:20 +0000 Subject: [PATCH] (-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 --- ChangeLog | 11 +++++++++++ Source/NSAttributedString.m | 1 + 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 73c4f9d2d..120de6a33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2003-02-11 16:33 Alexander Malmberg + + * 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 * Source/NSBrowser.m: Rewrote and documented the ([-setPath:]) method diff --git a/Source/NSAttributedString.m b/Source/NSAttributedString.m index 8680c2da2..184219ef9 100644 --- a/Source/NSAttributedString.m +++ b/Source/NSAttributedString.m @@ -1018,6 +1018,7 @@ documentAttributes: (NSDictionary **)dict { [self deleteCharactersInRange: NSMakeRange (range.location, 1)]; range.length--; + end--; } location = NSMaxRange (range);