We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a1c80 commit 18b1ebdCopy full SHA for 18b1ebd
src/diff/mod.rs
@@ -235,7 +235,7 @@ fn to_hunks<'a, T: ?Sized>(
235
// Check to see if we can merge the hunks
236
let start1_next =
237
cmp::min(s.old.start, lines1.len() - 1).saturating_sub(context_len);
238
- if start1_next < end1 {
+ if start1_next <= end1 {
239
// Context lines between hunks
240
for (_i1, i2) in (script.old.end..s.old.start).zip(script.new.end..s.new.start)
241
{
0 commit comments