mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 09:00:56 +00:00
(-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:
parent
e8ca345d45
commit
ea14bf8170
2 changed files with 12 additions and 0 deletions
11
ChangeLog
11
ChangeLog
|
@ -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>
|
2003-02-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSBrowser.m: Rewrote and documented the ([-setPath:]) method
|
* Source/NSBrowser.m: Rewrote and documented the ([-setPath:]) method
|
||||||
|
|
|
@ -1018,6 +1018,7 @@ documentAttributes: (NSDictionary **)dict
|
||||||
{
|
{
|
||||||
[self deleteCharactersInRange: NSMakeRange (range.location, 1)];
|
[self deleteCharactersInRange: NSMakeRange (range.location, 1)];
|
||||||
range.length--;
|
range.length--;
|
||||||
|
end--;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = NSMaxRange (range);
|
location = NSMaxRange (range);
|
||||||
|
|
Loading…
Reference in a new issue