Change location of start of end char search

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_4_0@14239 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-08-07 01:48:22 +00:00
parent 69a919edd8
commit 4abf8a302c
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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

@ -1904,7 +1904,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)
{