diff options
author | Austin Ziegler <austin@zieglers.ca> | 2020-06-23 11:53:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 11:53:16 -0400 |
commit | cef2f827c7d93cfcddc1ea64dfaab8c7ed784d41 (patch) | |
tree | 2494ca80640a39094314dc2a8212eef727d196b9 /lib/diff | |
parent | 4168a8eb56231152697290d14ac62a02eac9ac3f (diff) | |
parent | 4ccda50478a0b68f8ed1aebd310c207e0245466b (diff) | |
download | diff-lcs-cef2f827c7d93cfcddc1ea64dfaab8c7ed784d41.tar.gz |
Merge pull request #58 from halostatue/fix-issue-57v1.4.1
Fix an issue with negative hunk max_size
Diffstat (limited to 'lib/diff')
-rw-r--r-- | lib/diff/lcs.rb | 2 | ||||
-rw-r--r-- | lib/diff/lcs/block.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/diff/lcs.rb b/lib/diff/lcs.rb index c4d1cc8..b6d0a86 100644 --- a/lib/diff/lcs.rb +++ b/lib/diff/lcs.rb @@ -49,7 +49,7 @@ module Diff; end unless defined? Diff # rubocop:disable Style/Documentation # a x b y c z p d q # a b c a x b y c z module Diff::LCS - VERSION = '1.4' + VERSION = '1.4.1' end require 'diff/lcs/callbacks' diff --git a/lib/diff/lcs/block.rb b/lib/diff/lcs/block.rb index 430702d..fe86793 100644 --- a/lib/diff/lcs/block.rb +++ b/lib/diff/lcs/block.rb @@ -19,7 +19,7 @@ class Diff::LCS::Block end def diff_size - @insert.size - @remove.size + (@insert.size - @remove.size).abs end def op |