[macruby-changes] [5011] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Dec 10 04:13:25 PST 2010
Revision: 5011
http://trac.macosforge.org/projects/ruby/changeset/5011
Author: watson1978 at gmail.com
Date: 2010-12-10 04:13:21 -0800 (Fri, 10 Dec 2010)
Log Message:
-----------
oops, I mistook a condition with r5010.
Test Script:
{{{
require 'test/unit/assertions.rb'
include Test::Unit::Assertions
assert_equal(["\n\n\n", "hello\n\n\n\n", "and\nworld\n\n\n\n\n\n"], "\n\n\nhello\n\n\n\nand\nworld\n\n\n\n\n\n".lines('').to_a)
puts :ok
}}}
Revision Links:
--------------
http://trac.macosforge.org/projects/ruby/changeset/5010
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2010-12-10 12:00:56 UTC (rev 5010)
+++ MacRuby/trunk/string.c 2010-12-10 12:13:21 UTC (rev 5011)
@@ -4609,7 +4609,7 @@
do {
long off = str_index_for_string(RSTR(str), rs_str, pos, -1,
false, true);
- if(paragraph && off > 0) {
+ if(paragraph && off >= 0) {
int i;
for(i = off + 1; i < len; i++) {
UChar c = str_get_uchar(RSTR(str), i, true);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101210/f902a179/attachment.html>
More information about the macruby-changes
mailing list