vcs.rb: support d command in log-fix

This commit is contained in:
Nobuyoshi Nakada 2021-01-26 10:04:12 +09:00
parent a56760b908
commit 6963e682f8
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -597,6 +597,9 @@ class VCS
end
when %r[^( +)(\d+)i/(.*)/]
s[$2.to_i, 0] = "#{$1}#{$3}\n"
when %r[^ +(\d+)(?:,(\d+))?d]
n = $1.to_i
s[n..($2&.to_i || n)] = []
end
end
s = s.join('')