bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString fix for getLineStart:end:contentsEnd:forRange:


From: Adam Fedor
Subject: Re: NSString fix for getLineStart:end:contentsEnd:forRange:
Date: Tue, 06 Aug 2002 19:53:33 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0rc2) Gecko/20020513

Pete French wrote:
Bug in this method which means that if the range provided exactly covers
a line then the line plus the next is returned. This is due to the
search position for the end of the line always being placed on the next
character after the range supplied. Fix is to place it on the charcter at the
end of the range so that if the line range is provided then the whole line
will be returned. This is only necessary if the length of the range is
greater that zero.

-bat. [patch follows]


Thanks. I added this to the freeze-1_4_0 branch (so it will appear in 1.4.1). Eventually it will also be in the main branch.


--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]