Corrected problem in processEditing. The change range got to big

after repeated adding at the end.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2000-06-16 17:05:28 +00:00
parent 0851f1ed7c
commit 0b61b7ec7f

View file

@ -194,6 +194,10 @@ static Class concrete;
r = editedRange;
r.length += editedDelta;
// Multiple adds at the end might give a too long result
if (NSMaxRange(r) > [self length])
r.length = [self length] - r.location;
[self fixAttributesInRange: r];
[nc postNotificationName: NSTextStorageDidProcessEditingNotification