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:
parent
33c5e9d1c8
commit
1e2a8f7c94
1 changed files with 2 additions and 1 deletions
|
@ -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('')
|
||||
|
|
Loading…
Add table
Reference in a new issue