Change location of start of end char search

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14362 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-08-28 21:40:31 +00:00
parent 5c5df48015
commit eacd06770d
2 changed files with 11 additions and 1 deletions

View file

@ -226,6 +226,12 @@
to avoid other NSDefaultRunLoopMode events being triggered while
executing a DO method. **EXPERIMENTAL**
2002-08-06 Adam Fedor <fedor@gnu.org>
* Source/NSString.m (-getLineStart:end:contentsEnd:forRange:):
Change location of start of end char search (Patch from Pete
French).
2002-07-27 Adam Fedor <fedor@gnu.org>
* Version: 1.4.0

View file

@ -1973,7 +1973,11 @@ handle_printf_atsign (FILE *stream,
if (lineEndIndex || contentsEndIndex)
{
BOOL found = NO;
end = aRange.location + aRange.length;
end = aRange.location;
if(aRange.length)
{
end += (aRange.length - 1);
}
while (end < len)
{