summaryrefslogtreecommitdiff
path: root/lib/rexml/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/source.rb')
-rw-r--r--lib/rexml/source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb
index 915b6efc27..8161750694 100644
--- a/lib/rexml/source.rb
+++ b/lib/rexml/source.rb
@@ -102,7 +102,7 @@ module REXML
# @return the current line in the source
def current_line
lines = @orig.split
- res = lines.grep @buffer[0..30]
+ res = lines.grep(@buffer[0..30])
res = res[-1] if res.kind_of? Array
lines.index( res ) if res
end