1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vcs.rb: fix for baseruby 2.2

This commit is contained in:
Nobuyoshi Nakada 2021-01-26 10:30:02 +09:00
parent 33c5e9d1c8
commit 1e2a8f7c94
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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('')