summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/lib/vcs.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 5a33d87411..c5e75b987e 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -599,7 +599,8 @@ class VCS
s[$2.to_i, 0] = "#{$1}#{$3}\n"
when %r[^ +(\d+)(?:,(\d+))?d]
n = $1.to_i
- s[n..($2&.to_i || n)] = []
+ e = $2
+ s[n..(e ? e.to_i : n)] = []
end
end
s = s.join('')