Commit 5cccd10c authored by darin's avatar darin
Browse files

- fixed 2977587 -- JavaScript code that reads the values of text areas

	misses the last line if no trailing CR

        * kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 29b56839
2002-08-28 Darin Adler <darin@apple.com>
- fixed 2977587 -- JavaScript code that reads the values of text areas
misses the last line if no trailing CR
* kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]):
2002-08-28 David Hyatt <hyatt@apple.com>
Putting design notes and API details for the layering system
......
2002-08-28 Darin Adler <darin@apple.com>
- fixed 2977587 -- JavaScript code that reads the values of text areas
misses the last line if no trailing CR
* kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]):
2002-08-28 David Hyatt <hyatt@apple.com>
Putting design notes and API details for the layering system
......
2002-08-28 Darin Adler <darin@apple.com>
- fixed 2977587 -- JavaScript code that reads the values of text areas
misses the last line if no trailing CR
* kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]):
2002-08-28 David Hyatt <hyatt@apple.com>
Putting design notes and API details for the layering system
......
......@@ -261,7 +261,7 @@ const float LargeNumberForText = 1.0e7;
searchRange.location += advance;
}
return paragraphSoFar;
return paragraphSoFar + searchRange.length == 0 ? 0 : 1;
}
static NSRange RangeOfParagraph(NSString *text, int paragraph)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment