summaryrefslogtreecommitdiff
path: root/re
diff options
context:
space:
mode:
Diffstat (limited to 're')
-rwxr-xr-xre3
1 files changed, 2 insertions, 1 deletions
diff --git a/re b/re
index cd373aa..415de0f 100755
--- a/re
+++ b/re
@@ -65,11 +65,12 @@ for (@references) {
local $_;
while ($_ = readline $handles{$file}) {
$lines{$file}++;
+ chomp;
if ($rx->match($_)) {
$loc = $bytes{$file};
last;
}
- $bytes{$file} += length($_);
+ $bytes{$file} += length($_)+1;
}
} else {
goto invalid;