vcs.rb: fix for baseruby 2.2
This commit is contained in:
parent
33c5e9d1c8
commit
1e2a8f7c94
@ -599,7 +599,8 @@ class VCS
|
|||||||
s[$2.to_i, 0] = "#{$1}#{$3}\n"
|
s[$2.to_i, 0] = "#{$1}#{$3}\n"
|
||||||
when %r[^ +(\d+)(?:,(\d+))?d]
|
when %r[^ +(\d+)(?:,(\d+))?d]
|
||||||
n = $1.to_i
|
n = $1.to_i
|
||||||
s[n..($2&.to_i || n)] = []
|
e = $2
|
||||||
|
s[n..(e ? e.to_i : n)] = []
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
s = s.join('')
|
s = s.join('')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user